Thursday Aug 08, 2013

Quick Renaming of HTML Elements in NetBeans IDE

I've always known that if you press Ctrl-R on a Java variable in the NetBeans Java editor, all other instances of the variable are highlighted, and can be renamed at the same time.

This is called "Instant Rename".

However, today I discovered (simply because I was reusing my Java editor knowledge automatically in the HTML editor) that the same feature exists in the HTML editor:

Here I've pressed Ctrl-R while the cursor was in the first "h2" and then automatically a square appeared around the matching "h2", after which changes made to the first "h2" were replicated in the second. For example, changing an "h2" to an "h3" is now easier than I had thought. Cool!


Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« August 2013 »