在VSCode中查找Node.js模块的所有'require'或'import'吗?
我在VSCode 1.29.1中有一个Node.JS项目。我想查看模块在VSCode中查找Node.js模块的所有'require'或'import'吗?,node.js,visual-studio-code,Node.js,Visual Studio Code,我在VSCode 1.29.1中有一个Node.JS项目。我想查看模块required或imported的所有位置。有什么好方法可以做到这一点,还是有一个扩展?当我在module.exported的符号上单击“查找所有引用”时,它只列出该文件中的引用 作为一种解决方法,我一直在使用正则表达式搜索“在项目中查找”require\(.*moduleName.*)执行cmd+shift+f,然后键入并搜索行const which?虽然我知道这种方法有很多缺点,但也许可以解决这个问题?附言:我也在关注这
require
d或import
ed的所有位置。有什么好方法可以做到这一点,还是有一个扩展?当我在module.export
ed的符号上单击“查找所有引用”时,它只列出该文件中的引用
作为一种解决方法,我一直在使用正则表达式搜索“在项目中查找”
require\(.*moduleName.*)
执行cmd+shift+f,然后键入并搜索行const which
?虽然我知道这种方法有很多缺点,但也许可以解决这个问题?附言:我也在关注这篇文章。是的,这是我尝试的另一件事!但有时此代码库名称导入不一致。:)我怀疑,目前还没有其他解决办法。几天前,我发布了这篇文章——还没有答案。