"排序行中选择"对于x code 4 [英] "Sort Lines in Selection" for Xcode 4

查看:171
本文介绍了"排序行中选择"对于x code 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢TextMate的在选择排序行功能多多。是否有X $ C $的C 4类似的东西?如果没有,什么是集成这样的功能的最佳方式(一个插件,AppleScript的,...)?

I like Textmate's "Sort Lines in Selection" feature a lot. Is there something similar for Xcode 4? If not, what would be the best way to integrate such a feature (a plugin, Applescript, ...)?

推荐答案

您可以使用Automator在狮子做到这一点。

You can do this with Automator in Lion.


  • 开始的Automator,选择服务

  • 找到并拖动运行Shell脚本到工作流面板

  • 选择输出替换所选文本

  • 键入排序-f <​​/ code>进入运行Shell脚本文本框

  • 保存

现在您可以排序任何文本框线条。选择一些文本,右键单击或控制单击并选择刚才创建的服务。

Now you can sort lines in any textfield. Select some text and right-click or Control click and select the service you just created.

这篇关于&QUOT;排序行中选择&QUOT;对于x code 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆