在 Notepad++ 中,每当您选择 HTML 文档(或 CSS)中的任何单词时,类似的单词都会自动突出显示。
是否有一个快捷方式可以用来一次编辑所有这些突出显示的片段?
目前,Notepad++ 6.9.2 版本中尚未内置选择所有相似文本并进行编辑的功能(如 @George 提到的 Sublime 中的 Ctrl+D 功能)。听起来确实可以在 Notepad++ 时使用更新Scintilla版本 https://notepad-plus-plus.org/community/topic/11360/multi-selection-and-multi-edit/2它使用的功能是内置于那个的新版本 http://www.scintilla.org/ScintillaDoc.html#MultipleSelectionAndVirtualSpace.
完成与您所说的多行编辑类似的操作的唯一方法是使用替换功能或 Notepad++ 版本的多重编辑。
查找/替换
- 突出显示您要替换的单词。
- Type Ctrl+H to bring up the Replace dialogue.
- 修改“替换为”文本。
- 选择“替换”或“全部替换”
多重编辑
You first need to enable this feature in Notepad++ https://notepad-plus-plus.org/features/multi-editing.html. Do this by going to Settings→Preferences→Editing and then enable Multi-Line Edit. Now when you hold Ctrl and click around your text, a cursor will be left at the location of each click. When you're done locating all of the places you'd like to edit, you can start typing. Whatever you type will now appear at each of the locations you left a cursor at.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)