Reputation: 222309
JavaScript variables that are considered local by JetBrains WebStorm/PhpStorm can be renamed in-place on Shift+F6:
Unfortunately, this happens only when a variable has local scope because of function scope.
The current project is ES6 Node.js, this means that all newly defined variables are local. But CommonJS module scope isn't taken into account, and block-scoped variables aren't considered local as well, IDE tries to rename them globally in entire project on Shift+F6:
This becomes frustrating. 'Looking for usages' is quite slow in a large project, and the risk of undesirable renames in other project files is too high, so multicursor edit and Ctrl+R search/replace are much more productive.
The project has package.json
file in its root, ECMAScript 6
in Languages & Frameworks / JavaScript
and ECMAScript 6
, Node.js Core
in Languages & Frameworks / JavaScript / Libraries
enabled.
How can this be treated? Is it a known bug?
Upvotes: 0
Views: 139
Reputation: 222309
According to @de1mar, this have been fixed and will be available in WebStorm 2017.1 EAP.
Upvotes: 0