Bug 239573

Summary: Editor needs to select expression / syntactical element
Product: javascript Reporter: kimsp <kimsp>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: REOPENED --- QA Contact: issues <issues.netbeans.org>
Priority: P3    
Version: 8.0   
Target Milestone: TBD   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Issue Type: ENHANCEMENT Exception Report:

Description kimsp 2013-12-17 19:52:47 UTC
Netbeans really needs functionality like IDEA ctrl+w or Eclipse alt+shift arrow up or arrow down.

Not having an intelligent way of incrementally selecting the surrounding scope is a show stopper as it hinders my productivity.

See more here:
http://www.jetbrains.com/idea/webhelp/selecting-text-in-the-editor.html#d1233299e196

http://www.vogella.com/articles/EclipseShortcuts/article.html
Comment 1 kimsp 2013-12-17 20:02:11 UTC
I found, of course after filing the bug, that Netbeans has the feature. But why is it not advertised more, I can't seem to find it in the shortcut keys pdf nor in the menus (I found it here: http://netbeans.dzone.com/news/10-handy-editor-shortcuts-netbeans-ide-60)
Comment 2 kimsp 2013-12-17 20:34:17 UTC
I have decided that this is relevant as the aforementioned feature does works in Java files and but not all all in JavaScript file and only somewhat poorly in HTML files. For an editor that claims to focus and HTML and JavaScript this i bad.

Exampe for HTML:

Consider this:

<meta charset="utf-8">

If I place the curser at the - in the "utf-8" attribute I would expect that pressing alt-ctrl period would select the "uft-8" but it actually select the whole shown element.

And for JavaScript there is nothing to show, it simple does not work.
Comment 3 Svata Dedic 2013-12-17 20:45:48 UTC
'Key bindings' component just provides a way/ui/API how to bind a key to a certain plugin-provided function. 

In this case the function does not even exist in the mentioned languages (javascript, html). Moving to appropriate component (I would give JS slightly higher priority than HTML)
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo