How to let netbeans add parentheses around selected texts?

148 views Asked by At

I am using netbeans 8.1. I wonder if there is a feature that it add paretheses and quotation around selected text.

1

There are 1 answers

1
ΦXocę 웃 Пepeúpa ツ On

like the offciial documentation states>

add this to the code template:

("${selection}")${cursor}
  1. Go to Tools> Options> Editor> Code templates

  2. Click New, enter "so" as the abbreviation, then enter the following code as the expanded text:

    ("${selection}")${cursor}

  3. In the description tab, enter "Code folding", and click Ok