Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在VSCode中查找Node.js模块的所有'require'或'import'吗?_Node.js_Visual Studio Code - Fatal编程技术网

在VSCode中查找Node.js模块的所有'require'或'import'吗?

在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?虽然我知道这种方法有很多缺点,但也许可以解决这个问题?附言:我也在关注这

我在VSCode 1.29.1中有一个Node.JS项目。我想查看模块
require
d或
import
ed的所有位置。有什么好方法可以做到这一点,还是有一个扩展?当我在
module.export
ed的符号上单击“查找所有引用”时,它只列出该文件中的引用


作为一种解决方法,我一直在使用正则表达式搜索“在项目中查找”
require\(.*moduleName.*)

执行cmd+shift+f,然后键入并搜索行
const which
?虽然我知道这种方法有很多缺点,但也许可以解决这个问题?附言:我也在关注这篇文章。是的,这是我尝试的另一件事!但有时此代码库名称导入不一致。:)我怀疑,目前还没有其他解决办法。几天前,我发布了这篇文章——还没有答案。