Textmate:增加/减少选择?
有谁知道捆绑/插件/键盘命令可以增加所选文本的范围?
Intellij(我认为是 Eclipse)允许您扩大选择范围。如果您将光标放在方法名称上,Intellij 就会执行此操作,例如按 option + 向上箭头。这样做将选择完整的方法名称。再次按 Option + 向上箭头将选择方法名称和对象名称。我的意思是这样的:
- 未选择任何内容,但光标位于方法名称中:myObject.doSomething()
- 选项向上箭头:myObject.doSomething()
- 再次选项向上箭头:myObject.doSomething()< /strong>
选项向下箭头将缩小选择范围——与上述相反。
此功能将从方法名称,到对象,到行,到整个方法,等等。您必须承认,这是非常方便的工具。
我知道 shift + option + 右/左箭头将选择文本,但它不会在考虑范围的情况下执行此操作。这些年来我是否在 TextMate 中遗漏了一些明显的东西,或者是否需要在即将发布的版本中添加这些东西?
谢谢!
Does anyone know of a bundle/plugin/keyboard command to increase the scope of selected text?
Intellij (and I think Eclipse) allow you to increase the scope of your selection. Intellij will do this if you place the cursor on a method name, for example, press option + Up Arrow. doing that would select the full method name. Option + Up Arrow again would select the method name and the object name. Here's what I mean:
- Nothing selected, but cursor in the method name: myObject.doSomething()
- Option Up Arrow: myObject.doSomething()
- Option Up Arrow again: myObject.doSomething()
Option down arrow will decrease the scope of the selection -- the inverse of the above.
This functionality will go from the method name, to the object, to the line, to the entire method, and so on. it's very handy tool, you must admit.
I know that shift + option + right/left arrow will select text, but it won't do it with scope in mind. Have I been missing something obvious with TextMate all these years, or does this need to be added on an upcoming version?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论