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: | Code templates do not expand inside template's param | ||
---|---|---|---|
Product: | editor | Reporter: | wookie22 |
Component: | Completion & Templates | Assignee: | Dusan Balek <dbalek> |
Status: | REOPENED --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
wookie22
2015-04-13 14:28:23 UTC
Created attachment 153163 [details]
IDE log
This is as designed behaviour. See issue #240327. Well in my opinion now is weird behavior while previous was logical. As said in issue #240327 - there was "n" abbreviation and it expands like it should. Problem was in abbreviation itself no in Netbeans. "n" for abbreviation is bad because "n" is commonly used in code as variable. Abbreviations shouldn't collide with commonly used words/letters. Fix for issue #240327 should be: change abbreviation from "n" to "N" for instance. So now issue #240327 is "fixed" but it generates more new issues. Look at this example: Abbreviation: | Expanded text: IS | isset(${cursor}) R | $_REQUEST[${cursor}] if | if (${expr}) ${cursor} I want line of code: if(isset($_REQUEST["a"])) $b = 1; Before fix I just typed: "if IS R $a" which is super fast (especially when expanding after space not tab) Now I can't. Maybe it should be an option or directive in expanded text. |