How do I edit all highlighted instances of a word simultaneously?

后端 未结 6 1148
执笔经年
执笔经年 2021-02-01 14:57

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 o

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-01 15:42

    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.

    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.

    To Find/Replace

    1. Highlight the word you would like to replace.
    2. Type Ctrl+H to bring up the Replace dialogue.
    3. Modify the "Replace with" text.
    4. Choose either "Replace" or "Replace All"

    To Multi-Edit

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

提交回复
热议问题