Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to surround a text in quotes in netbeans IDE

I have some text, say:

<td id=asd >

Is there a shortcut in netbeans, where a selected text can be surrounded by quotes?

 <td id="asd" >
like image 574
Harke Avatar asked Feb 17 '12 14:02

Harke


1 Answers

If the macro is not there by default here is macro code that will accomplish what you want

caret-begin-word "'" caret-end-word "'"

or

caret-begin-word "\"" caret-end-word "\""

NOTE: This will only surround a WORD in quotes. Not your selection.

You can also highlight what you want and just hit ' or " to surround the highlighted portion in quotes

Tested in NetBeans 7.2.1

like image 74
Nathan Knowles Avatar answered Oct 07 '22 04:10

Nathan Knowles