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: | Codecompletion and method-arguments in Java/JavaScript/HTML for a developer coming from Eclipse | ||
---|---|---|---|
Product: | web | Reporter: | colerend |
Component: | HTML Editor | Assignee: | Milutin Kristofic <mkristofic> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
colerend
2014-06-13 07:23:47 UTC
As for Java part of this issue: By picking an intellisense alternative of a method call with arguments, editor switches to the special 'code template editing' mode where 'Enter' and 'Tab' are interpreted as commands to select the next parameter to edit. However, I doubt that the same behavior would be appreciated in the 'plain editing' mode. Imagine a situation that someone really wants to put a newline inside a method call arguments. Reassigning to HTML editor for evaluation of the HTML part. (In reply to Dusan Balek from comment #1) > As for Java part of this issue: By picking an intellisense alternative of a > method call with arguments, editor switches to the special 'code template > editing' mode where 'Enter' and 'Tab' are interpreted as commands to select > the next parameter to edit. However, I doubt that the same behavior would be > appreciated in the 'plain editing' mode. Imagine a situation that someone > really wants to put a newline inside a method call arguments. > > Reassigning to HTML editor for evaluation of the HTML part. Here's the thing though. The "special mode" (code template editing) of modifying the method/function arguments is very slick and productive. What I am after is the same kind of code-completion for the HTML and JavaScript editors. Note that I am not necessarily asking for this to be defaulted into NetBeans standard behaviour. What I am firstly asking is if there is *any way whatsoever* that I personally can get this behaviour. Ie: would it not be possible to achieve this by editing a configuration file? I get the feeling the amount of configuration possible with NetBeans is probably vastly greater than what is displayed in the Settings. This is most likely true atleast for the code-completion offered in the HTML editor. Changing this so that an intellisense-selected option inserts not a half-broken HTML tag ('<span ') but an more complete result ('<span></span>') simply "must" be possible... ? Regarding the JavaScript and Java functionality, I feel much the same way, ie: surely it "must" be possible to somehow trigger a "code template editing"-mode after inserting dual parentheses, or during some other arbitrary, configured, circumstances? (for instance, is there any way of "manually" entering the "code template editing"-mode, "on-demand" ?) Thank you Cole |