简体   繁体   English

是否可以在VSCode中自动完成相对路径

[英]Is it possible to auto complete relative paths in VSCode

One of the features of the atom editor that has kept me using it for so long is when I am doing modular imports of ES6 style classes in my local project structure. 使用它的atom编辑器的一个特性是我在本地项目结构中进行ES6样式类的模块化导入。

Typing something like 输入类似的东西

import './SomeDir/'

would result in an intellisense/autocomplete panel showing a list of files and folders in that path. 将导致智能感知/自动完成面板显示该路径中的文件和文件夹列表。

I was surprised that VSCode didn't do this out of the box, but I'm now wondering if there is just something I must enable to get it working. 令我感到惊讶的是, VSCode没有开箱即用,但我现在想知道是否只有一些东西我必须启用才能让它工作。 Or perhaps there is an outstanding issue at their github page that I could start following? 或者也许在他们的github页面上有一个突出的问题我可以开始关注?

扩展已经完成, 可在此处使用并且运行良好。

This is not a current feature of VS Code, but it would be a slick one. 这不是VS Code的当前功能,但它将是一个光滑的。

I have added it to a wiki for community requested extensions . 我已将其添加到维基中以获取社区请求的扩展名

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

相关问题 使用 app-module-path 库时,vscode 是否可以以非相对方式自动导入路径? - Is it possible for vscode to auto-import paths in a non-relative way when using app-module-path library? 如果我在 Vite 项目中使用&#39;@ =&gt; ./src/component&#39;,如何使 VSCode 自动完成路径(解析) - How can I make VSCode auto complete paths (parses) if I use '@ => ./src/component' in Vite project VSCode调试器弄乱了相对路径 - VSCode debugger messing up relative paths angular:过滤以替换和完成相对<a href=“/”>路径</a> - angular: filter to replace and complete relative <a href=“/”> paths Typescript 自动完成在 VSCode 中不起作用 - Typescript auto-complete not working in VSCode 是否可以避免在 Flow 上使用较长的相对导入路径? - Is it possible to avoid long relative import paths on Flow? 在新的 VsCode 版本中没有为 JavaScript 自动完成 - Not getting auto-complete for JavaScript in new VsCode version 在与Browserify捆绑时,是否可以在AngularJS中使用指令templateUrls的相对路径? - Is it possible to use relative paths for directive templateUrls in AngularJS when bundling with Browserify? 对相对路径使用 require - Using require with relative paths 相对于文件的Javascript路径 - Javascript paths relative to file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM