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.

Bug 239573 - Editor needs to select expression / syntactical element
Summary: Editor needs to select expression / syntactical element
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2013-12-17 19:52 UTC by kimsp
Modified: 2013-12-17 20:45 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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:
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:
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)