Anders Hejlsberg shows on channel9 that you can rename variables across multiple files with the Visual Studio TypeScript plugin. cf.: video introduction to TypeScript by Anders Hejlsberg at 50:08.
However, when I open the Refactoring menu, all items are deactivated, including Rename. I'm using the latest version of VS2012 Professional. Maybe this is related to ReSharper which is installed on my system. Can anybody could confirm this as a bug or is the Rename feature still in development?
Edit since I may not post this as an answer:
ReSharper overrides some original Visual Studio menu items.
There is a checkbox at RESHARPER -> Options -> Keyboard & Menus -> Hide overriden Visual Studio menu items
.
Check this and the original Refactoring menu shows up again. There is the Rename
feature which is working just fine.
There are two reasons you may not be able to refactor the name in Visual Studio.
If you are running your application in debug mode, many editing features are not available
If you have a Visual Studio extension, such as Resharper, it may have overridden the Visual Studio feature in the menu, or shortcut keys. For rename, the Visual Studio shortcut is simply F2
, so it shouldn't clash with the Resharper key-combination - but Resharper may still override the context menu.
ReSharper (7.1.1) doesn't have built-in rename support for TypeScript. If you have ReSharper installed it is probably overriding (and hiding) Visual Studio's native rename -- this is the default functionality.
To show and enable Visual Studio's rename you need to uncheck the following option:
RESHARPER -> Options -> Keyboard & Menus -> Hide overriden Visual
Studio menu items
(Per the comments to this post, you can vote for this feature to be added to ReSharper at the following link: http://youtrack.jetbrains.com/issue/RSRP-330454)