简体   繁体   English

在 vscode 中导入文件路径自动完成

[英]import file path autocomplete in vscode

I've just switched to vscode from atom.我刚刚从 atom 切换到 vscode。 I miss the path autocomplete when you import a file.导入文件时,我错过了路径自动完成功能。 In atom, all the files that are in my workspace are automatically searched for the matching keyword.在 atom 中,我工作区中的所有文件都会自动搜索匹配的关键字。 However, in vscode, only the node modules and the relative directories are searched.但是,在 vscode 中,只搜索节点模块和相关目录。 This forces me to guess the directory structure to get to the file I want to import.这迫使我猜测目录结构以获取我要导入的文件。 Is there a way to make vscode search for all the files in the workspace directory (excluding external modules)?有没有办法让 vscode 搜索工作区目录中的所有文件(不包括外部模块)?

我建议你看看这个vs 代码的扩展......我一直在使用它,它很棒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM