TypeScript refactoring stopped working in VS 2013 RC2
I have just installed VS 2013 RC2 and TypeScript refactoring stopped working. It disappeared from context menu, and pressing Ctrl+R
, Ctrl+R
gives the following error message:
The key combination (Ctrl+R, Ctrl+R) is bound to command (.Refactor.Rename) which is not currently available.
I have tried restarting VS, didn't help. Any ideas, workarounds?
Edit: I have submitted a bug to Microsoft. Please upvote it if you have the same issue: https://connect.microsoft.com/VisualStudio/feedback/details/860463/typescript-refactoring-stopped-working-in-vs-2013-rc2
Microsoft posted the following answer to my question on MS Connect. Seems that while refactor/rename was available in VS Express Edition with TypeScript 0.9, in TypeScript 1.0 it's only available from VS Pro upwards.
Posted by Microsoft on 19/05/2014 at 09:25
Thank you for reporting this issue.
Refactor/rename and NavigateTo are features that are found in the Pro+ versions of TypeScript in Visual Studio 2013. The Pro+ tools are aimed at helping users work with larger codebases, so there is a focus on building up tools to help support those codebases in those versions of Visual Studio. We're working to continue to refine to make the experience best across both Express and Pro+, with the right features to help users who want to learn TypeScript and those who want to move to using TypeScript in larger projects.
For me it happened because of resharper conflict. I uninstalled resharper and restarted visual studio
链接地址: http://www.djcxy.com/p/85090.html