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!

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

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.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today