如何同时编辑单词的所有突出显示实例

如何同时编辑单词的所有突出显示实例

本文介绍了如何同时编辑单词的所有突出显示实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Notepad ++中,每当您在HTML文档(或CSS)中选择任何单词时,相似的单词都会自动突出显示.

In Notepad++, whenever you select any word in an HTML document (or in your CSS), similar words are automatically highlighted.

是否可以使用快捷方式一次编辑所有这些突出显示的段?

Is there a shortcut I can use to edit all of these highlighted segments at once?

推荐答案

当前,选择所有相似文本并进行编辑(如@George提到的Sublime中的Ctrl + D功能)的功能尚未内置于Notepad ++版本6.9.2.当Notepad ++ 更新它使用的Scintilla版本,因为该功能已内置到的较新版本中.

Currently, the ability to select all similar text and edit (like the Ctrl+D functionality in Sublime, as mentioned by @George) is not built in to Notepad++ version 6.9.2. It does sound like it will work when Notepad++ updates the version of Scintilla it uses as the functionality is built in to the newer version of that.

完成与您所说的多行编辑类似的操作的唯一方法是使用替换功能或Notepad ++的多编辑版本.

The only way to accomplish something similar to the multi-line edit you speak of is to either use the replace function or Notepad++'s version of multi-editing.

  1. 突出显示您要替换的单词.
  2. 键入 + 弹出替换"对话框.
  3. 修改替换为"文本.
  4. 选择替换"或全部替换"
  1. Highlight the word you would like to replace.
  2. Type + to bring up the Replace dialogue.
  3. Modify the "Replace with" text.
  4. Choose either "Replace" or "Replace All"

要进行多编辑

您首先需要在记事本++中启用此功能.为此,请转到→→,然后启用多行编辑.现在,当您按住Ctrl键并单击文本周围时,光标将留在每次单击的位置.找到要编辑的所有位置后,就可以开始输入了.现在,您键入的任何内容都会出现在您将光标停留在的每个位置.

To Multi-Edit

You first need to enable this feature in Notepad++. Do this by going to →→ 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.

这篇关于如何同时编辑单词的所有突出显示实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 20:35