vscode如何在文件目录上,快速定位到node_modules的包位置?

修改vscode配置

在vscode的settings中找到Auto Reveal Exclude,如果发现条目中有node_modules,将其删掉。
image.png

选中目标包名

在包名上右键,选择Go to Definition。
image.png

完成

我们就会进到包内部,并且vscode左侧的目录也会自动定位并展开。
image.png

评论

暂无评论