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.
Summary: | Easier code commenting | ||
---|---|---|---|
Product: | cnd | Reporter: | obucinac <obucinac> |
Component: | Editor | Assignee: | issues@cnd <issues> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
obucinac
2008-07-23 03:51:55 UTC
First feature (select code and comment) use for this Ctrl+/. Maybe would be nice to have smarter comment: - if user select all lines - use // - if user select piece of lines - use /* */ as Alexander mentioned, it's already here (use Ctrl+/) Just a note: /* */ comment is used in C file, while // commenting in C++ files I think would be better to customize code commenting: .. <code1><code2><code3> .. if user select only <code2> then when user press Ctrl+/ .. <code1>/* <code2> */<code3> .. or when he select few lines .. <code1.1><code1.2><code1.3> <code2.1><code2.2><code2.3> .. with comments (user select from <code1.2> to <code2.2>) .. <code1.1> /* <code1.2><code1.3> <code2.1><code2.2> */<code2.3> .. Note: usage /* only for C is for me not obvious because standard C++ describe how can code commented PS How is in issues rules write : one issue - one problem. I propose create issue for smart commenting how I did describe If obucinac is not against. How do you think, Vladimir? Alexander, yes, please, file ENH one per each your proposal :-) Thanks, Vladimir btw, I filed ENH about "comment method". Thanks for the idea. http://www.netbeans.org/issues/show_bug.cgi?id=141321 |