VS Code path auto completion
Hi everyone,
On my old laptop in VS Code I would get autocomplete suggestions when typing in path names like for img src or in css url() for bg img or font etc. However on my new machine I'm not getting that and I have no clue what setting or extension I had setup to enable that. It worked in html, css, js for imports , and for react e.g. img src and imports in tsx, ts, js and jsx file extensions. If anyone knows how to configure to enable this behaviour, I would be very grateful as it was so helpful
On my old laptop in VS Code I would get autocomplete suggestions when typing in path names like for img src or in css url() for bg img or font etc. However on my new machine I'm not getting that and I have no clue what setting or extension I had setup to enable that. It worked in html, css, js for imports , and for react e.g. img src and imports in tsx, ts, js and jsx file extensions. If anyone knows how to configure to enable this behaviour, I would be very grateful as it was so helpful
13 Replies
do you have the old laptop?
if you do, make sure both have the same extensions and the same configuration
This is a good usecase for Profile sync
Settings Sync in Visual Studio Code
Synchronize your user settings across all your Visual Studio Code instances.
it is
I literally just learned about profiles last night but didn’t think there was a way to sync them without exporting/importing a profile . I’m def going to make use of this from here on out. Just don’t have the old install to use
I don’t
maybe it was an extension that did that
for example, for sass, there's an extension that does have this functionality
I also use an extension to gits sync 😂 anal lol but that way its also avail on my github easy. I'm pretty sure their profiles use github too just not sure where it goes. In the gits I can cherry pick if I need to* too.
Ohh nice ! I know you can export a profile to git gist then import but I like the sound of cherry picking ! Is it called Gits sync ?
Settings Sync
seems like you get some depricated warning now and telling you to use their 🤣
o wtf it even removed it from mine ... and you cant even install .. WILD
so..... nvm
https://code.visualstudio.com/docs/editor/profiles#_export
I guess this is the best alternative to have a "extra backup"
Profiles are a better way than how I used workspaces now too, you can customize them to only have the extensions for what you are working with.
also make sure you have
"javascript.suggest.paths": true,
in your settingsThank you! So from what I understand , I can use the native Settings Sync and export a backup to gh gists, and the extension you referenced for cherry picking is deprecated and disappeared ?
There's an extension called Path Intellisense. This might help you