This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
During work with code very often there is a situation when some piece of code must be inserted into brackets, I.e. to put in the beginning and at the end of code brackets (for example for the statement of "if" ). In other editors there is such function under the name "smart insert": you select and press brackets - the selected piece is framed brackets. It would be not bad to be in such position in Netbeans.
You can use hints for this - select block of size and in gutter (left part of editor) should appear a lightbulb - click on it of press alt-enter, the list of common block encapsulation are provided
Yes, but when can I add to the list of fixes "Surround with (exp)" or "Surround with {exp}" ?
Yes, but wher can I add to the list of fixes "Surround with (exp)" or "Surround with {exp}" ?
This is not possible now. This is good idea for enhancement. Another solution which may work for you is recording your own macro.
*** This bug has been marked as a duplicate of bug 243021 ***