带有 TypeScript 和 node_modules 的 Visual Studio Resharper [英] Visual Studio Resharper with TypeScript and node_modules

查看:29
本文介绍了带有 TypeScript 和 node_modules 的 Visual Studio Resharper的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Visual Studio 2015 Update 3.当我尝试使用 Resharper 重构我的 TypeScript 代码时,Resharper 尝试重构每个文件夹中的代码,包括 node_modules.显然,我不希望 Resharper 接触 node_modules,因为那些是 3rd 方库(不是我的代码),并且可能需要 6 个小时来尝试浏览我在 中的所有文件夹节点模块.如何让 Resharper 在所有情况下忽略 node_modules,尤其是在重构过程中?

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... 选项... 搜索 &导航...要跳过的元素...添加 node_modules
  • Resharper...选项...代码检查...设置...要跳过的元素...添加 node_modules

我还尝试在其 Windows 文件夹属性中将 node_modules 文件夹更改为隐藏,但 Resharper 仍然会进入该重构过程.

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.

我还需要做什么才能让 Resharper 忽略 node_modules?

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

推荐答案

找到解决方案:

Resharper...选项...代码编辑...第三方代码...库代码...添加node_modules

问题解决了!

这篇关于带有 TypeScript 和 node_modules 的 Visual Studio Resharper的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆