Visual Studio Resharper with TypeScript and node_m

2019-06-27 12:18发布

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条回答
手持菜刀,她持情操
2楼-- · 2019-06-27 12:47

Found the solution:

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

Problem solved!

查看更多
登录 后发表回答