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 218137 - Add Rename to context menu in JS file
Summary: Add Rename to context menu in JS file
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 226534 240112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-11 13:15 UTC by Vladimir Riha
Modified: 2014-01-08 13:05 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-09-11 13:15:06 UTC
Context menu in JS files is missing Refactor|Rename (or simple Rename) item. The only way to rename is to use Ctrl+R


Product Version: NetBeans IDE Dev (Build 201209110001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-30-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-09-14 14:40:09 UTC
just a small comment: If you want to use Instant Rename (aka the only supported refactoring in JS files now), you have to do it via Ctrl+R. Which is the shortcut assigned to Refactor-Rename.

If I compare it to PHP and likely JavaSE projects, the behavior is similarly "mixed". If you place cursor inside a variable and use Ctrl+R, instant rename is invoked although Ctrl+R is in context menu assigned to Refactor-Rename and if you use this context menu, the resulting action is different that the one comming from Ctrl+R.
Comment 2 Kenneth Ganfield 2012-09-14 15:05:40 UTC
Will Rename and Find Usages from the main menu be supported in JS files?
Comment 3 Vladimir Riha 2013-02-22 14:15:00 UTC
*** Bug 226534 has been marked as a duplicate of this bug. ***
Comment 4 Vladimir Riha 2014-01-08 13:05:17 UTC
*** Bug 240112 has been marked as a duplicate of this bug. ***