Sublimetext2 升华文本2,按顺序编辑多个选项,一次编辑一个

Sublimetext2 升华文本2,按顺序编辑多个选项,一次编辑一个,sublimetext2,sublimetext,sublime-text-plugin,Sublimetext2,Sublimetext,Sublime Text Plugin,以下是我经常遇到的一个常见情况: std::cout << "This is a really long line of code with a placeholder at the end: " << HERE_IT_IS << "\n"; std::cout << "This is another really long line of code with a placeholder at the end: " << HERE_IT

以下是我经常遇到的一个常见情况:

std::cout << "This is a really long line of code with a placeholder at the end: " << HERE_IT_IS << "\n";
std::cout << "This is another really long line of code with a placeholder at the end: " << HERE_IT_IS << "\n";
std::cout << "This is yet another really long line of code with a placeholder at the end: " << HERE_IT_IS << "\n";

在Windows上点击Alt+F3选择相似的标识符/变量等。。然后按F3键一次浏览一个。在遍历标识符的引用时,可以单独编辑它们。如果需要选择多个标识符,请单击Ctrl+d并立即修改它们。如果您犯了错误,请按Ctrl+u键并撤消类似标识符/变量列表中的最后一个选择。

可能会有更好的答案,因为按F3键将允许您在结果中按tab键,但最终编辑每个结果将撤消原始选择,强制您在替换的单词的较早实例上按Alt+F3,以便再次通过结果进行tab。对不起,再跳一遍又有什么用呢?我希望这样做的主要原因是以永久的方式更改占位符:)这似乎是解决该问题的完美方法。