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.
I like vim's approach of expanding abbrevirations while typing "." appending it after expansion.
Target milestone -> 3.3
Changing the state of the issue to ASSIGNED, because it was cover in Requirements document at http://editor.netbeans.org/doc/Requirements.html
Target milestone -> 3.3.1.
Set target milestone to TBD
Probably Tab is not too bad. I thing that something has to be changed because it is quite suprising that when I type "StringTokenizer st = ...") I get "StringTokenizer static = ..." and if I really want to use the name "st" then I have to trick the editor into letting me do it. So, I think the trigger for expanding an abbreviation should be something more explicit than space or enter.
Brian, I argue that: "StringTokenizer st" auto-completing to "StringTokenizer static " can be fixed by making abbreviations context-sensitive. It *never* makes sense to auto-complete variable names so abbreviations should obviously be disabled in this case.
IMO it's rather difficult to find out that "st" was a variable name in the previous example. To make it solidly a parser would be necessary to determine that fact. However it would be rather difficult to run the parser in that case as the text can be in an incomplete state. There could be some simpler rules as e.g. "if there are two identifiers delimited by white-space the first one is likely a type" but I still think a more explicit expand key such as Tab is generally better solution.
It does not seems anybody is working on it...
suggestion: several other IDEs use the code insight/completion keybinding for abbreviation expansion (typically ctrl+space). This make sense because the user has already been conditioned to think of that keystroke as one which inserts text.
Changing subcomponent to macros.
IMO expansion char should be configurable in editor options.
Increasing priority of this old RFE.
in recent keymap options I can see one (under Others) that says "Substitute Code Completion Text" - does that do the job?
In Tools->Options->Editor->Code Templates there is now "Expand Template on" and you can choose SPACE, Shift+SPACE, TAB, ENTER. *** This issue has been marked as a duplicate of 68528 ***
verified.