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.

Bug 115667 - Smart insert
Summary: Smart insert
Status: RESOLVED DUPLICATE of bug 243021
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-17 09:50 UTC by avp
Modified: 2016-10-24 20:16 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avp 2007-09-17 09:50:53 UTC
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.
Comment 1 Jiri Prox 2007-09-17 10:31:33 UTC
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
Comment 2 avp 2007-09-17 11:58:06 UTC
Yes, but when can I add to the list of fixes "Surround with (exp)" or "Surround with {exp}" ?
Comment 3 avp 2007-09-17 11:58:16 UTC
Yes, but wher can I add to the list of fixes "Surround with (exp)" or "Surround with {exp}" ?
Comment 4 Jiri Prox 2007-09-18 08:02:16 UTC
This is not possible now. This is good idea for enhancement.

Another solution which may work for you is recording your own macro.
Comment 5 markiewb 2016-10-24 20:16:24 UTC

*** This bug has been marked as a duplicate of bug 243021 ***