VS Code 中的文件路径自动完成 [英] File path autocomplete in VS Code

查看:53
本文介绍了VS Code 中的文件路径自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VS Code 是否具有文件路径的自动完成功能?例如如果我想写js的完整路径:"assets/libs/jquery.min.js"Brackets.ie 等编辑器默认执行此操作.

解决方案

Visual 代码本身没有 Path 智能感知,但您可以使用此插件.

按 f1 并将其复制到其中:ext install path-intellisense

是Christian Kohler做的插件,都是他的道具.

另外,正如 Searene 在评论中提到的,您可能还想在用户设置中设置 "path-intellisense.absolutePathToWorkspace": false 以使绝对路径的自动完成工作.>

Has VS Code an autocomplete function for file paths? For e.g. if I want to write the full path to js: "assets/libs/jquery.min.js" Editors like Brackets.ie does this by default.

解决方案

Visual code by itself has no Path intellisense, but you can use this plugin.

press f1 and copy this in it: ext install path-intellisense

Its a plug-in made by Christian Kohler, all props to him.

Plus, as Searene mentions in the comments, you may also want to set "path-intellisense.absolutePathToWorkspace": false in User Settings to make the auto-completion of absolute paths work.

这篇关于VS Code 中的文件路径自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆