Reputation: 10736
In IntelliJ, if the editor cursor is in the middle of a word like this w|ord and you press Ctrl+W, it will highlight the whole word which allows you to highlight the whole word without moving the cursor to the end or the beginning of the word then do ctrl+shift+←/→.
What's the equivalent in Netbeans?
Upvotes: 1
Views: 178
Reputation: 314
In netbeans you can use ctrl + j which selects next word occurrence. However, you can use it once, and you will get the same functionality as in IntelliJ ctrl + w
Upvotes: 0
Reputation: 17363
If you simply want to select/highlight the word at the current cursor position in NetBeans just double-click. You can do the same in Intellij IDEA. Both IDEs will also highlight other occurrences of the selection.
Ctrl+W in Intellij IDEA is more powerful than that. It is language aware, and supports incremental selection, so that if you keep clicking Ctrl+W it selects larger portions of your source code. Unfortunately I don't know of any equivalent in NetBeans.
Upvotes: 1