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?
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?
See the answer here https://superuser.com/questions/621986/editing-all-instances-of-a-string-in-notepad
Which is:
Ctrl + F, enter word, enter replacement. "Hit Replace all".
This might be a bit late though...
If you want to override the word "unit" then: At the 1-st step select the entire word unit then follow next steps.
There used to be a way that you could just highlight and do something to edit all of the highlighted parts. I know you can click, but there was a way previous you didn't need to do this for everything (and had nothing to do with the find/replace command!)
I should add that the Ctrl+Click option doesn't have to be matching words, so its not really related to the highlighting of similar words
There is a way, but I used a different editor. Sublime lets you select multiple areas by highlighting one and hitting CTRL+D, then you get many cursors and you can edit them in parallel.
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
To Multi-Edit
You first need to enable this feature in Notepad++. 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.