Visual Studio Resharper with TypeScript and node_modules

a 夏天 提交于 2019-12-12 12:27:07

问题


I'm using Visual Studio 2015 Update 3. When I try to use Resharper to Refactor my TypeScript code, Resharper tries to refactor code in every folder, including node_modules. Obviously, I do not want Resharper to touch node_modules because those are 3rd party libraries (not my code) and it would probably take 6 hours to try to go through all of those folders I have in node_modules. How do I get Resharper to ignore node_modules in all instances, especially in the Refactor process?

I have already tried the following:

  • Resharper... Options... Search & Navigation... Elements to skip... Add node_modules
  • Resharper... Options... Code Inspection... Settings... Elements to skip... Add node_modules

I also tried changing the node_modules folder to Hidden in its Windows Folder Properties, but Resharper still gets in there for that Refactor process.

What else do I need to do to get Resharper to ignore node_modules?


回答1:


Found the solution:

Resharper... Options... Code Editing... Third-Party Code... Library code... Add node_modules

Problem solved!



来源:https://stackoverflow.com/questions/42264026/visual-studio-resharper-with-typescript-and-node-modules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!