多个光标/突出显示当前突出显示的单词的下一个实例 [英] Multiple cursors / highlight next instance of currently highlighted word

查看:25
本文介绍了多个光标/突出显示当前突出显示的单词的下一个实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Sublime Text 中,很容易选择单词的下一个实例通过按 command + d 并通过按 command & 放置多个光标点击.我知道不止我一个人说这是一个非常有用的编辑器功能.

In Sublime Text, it's easy to select the next instance of a word by pressing command + d and also place multiple cursors by pressing command & clicking. I know I'm not alone in saying this is an incredibly useful function in editors.

我没有运气为此找到任何键映射或 Alcatraz 插件,所以我有兴趣看看在 xcode 5 中是否有一种方法可以做到这一点,我可能错过了,或者是否有计划在 xcode 6 中实现这个?

I haven't had any luck in finding any key mappings or Alcatraz plugins for this, so I was interested to see if either there is a way to do this in xcode 5 which I might have missed or if there are plans to implement this in xcode 6?

如果没有,并且任何 xcode 开发人员看到这一点,都希望将其视为一项功能并听取您的意见:)

If there isn't, and any xcode developers see this, would love to see this as a feature and hear your opinions on it :)

推荐答案

从 Xcode 10 Beta 3 开始就可以了

It is possible starting from Xcode 10 Beta 3

您可以使用以下命令为下一个和上一个查找结果添加选择查找并选择下一个"和查找并选择上一个"菜单命令.

You can add selections for the next and previous find results using the "Find and Select Next" and "Find and Select Previous" menu commands.

此外,您可以快速为下一个和上一个添加选择使用选择下一个Occurrence"和Select Previous Occurrence"菜单命令.

Additionally, you can quickly add selections for the next and previous occurrences of the current selected text using the "Select Next Occurrence" and "Select Previous Occurrence" menu commands.

E 选择当前选中的下一次出现

E to select next occurence of currently selected

E选择当前选中的上一次出现

E to select previous occurence of currently selected

G查找并选择下一个

G查找并选择上一个

您还可以使用 Find 菜单来查找这些操作.当然,可以随意绑定不同的热键!

You can also use the Find menu to find these actions. Of course, feel free to bind it to different hotkeys!

这篇关于多个光标/突出显示当前突出显示的单词的下一个实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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