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.
-
I'm hoping they add this, it doesn't come up with suggestions as I type and it's not super necessary, but would be cool. The main reason for using VS code over something like Sublime Text is that a lot of stuff is setup by default and appears to have good debugging built in for Node.JS apps. I may end up switching back to sublime though and just configuring itBRogers– BRogers2016-04-03 04:58:07 +00:00Commented Apr 3, 2016 at 4:58
-
Neither Path Intellisense nor Path Autocomplete work for me at all. They literally do nothing, though I've tried to follow the instructions in the READMEs. No idea what I'm doing wrong. Would love a reliable answer to this question. It's weird to be in a text editor that doesn't grok file paths.Jeff Schwab– Jeff Schwab2024-08-30 12:38:44 +00:00Commented Aug 30, 2024 at 12:38
2 Answers
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.
4 Comments
"path-intellisense.absolutePathToWorkspace": false in User Settings to make the auto-completion of absolute paths work.~, out of the box.Path Intellisense does not work for me, but Path Autocomplete works for me.
Installation:
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
ext install ionutvmi.path-autocomplete
You can also install it in the extensions tab(Ctrl+Shift+X).
2 Comments
"typescript.suggest.paths": false and "javascript.suggest.paths": false in vscode settings. did and works perfectly fine!