Reputation: 13
I am very new to Visual Studio Code. I have installed the Path Intellisense extension. Path Intellisense extension It very clearly says I must add the following to the settings. (these should have curly braces, but I kept getting an error message when I submitted the question)
"typescript.suggest.paths": false
"javascript.suggest.paths": false
I can get to the preferences/settings, but I don't know where to put the configuration code.
I have looked at few videos, googled it, but can't find it.
Upvotes: 1
Views: 44
Reputation: 916
I checked this extension and found that the documentation on its Settings is not quite comprehensive. Maybe only the practically important setting properties are documented, I'm not sure.
No matter, I can tell you how to handle such cases and find all the settings available and modify what you need. For one thing, you can open the extension package file and look at all available setting properties. Open the file https://github.com/ChristianKohler/PathIntellisense/blob/master/package.json and look at the JSON properties contributes.properties.*
. For each property, you will find the type
, default
value, and description
.
More generally, with other extensions, pay attention to the Repository link found on the exception page on the Visual Studio Marketplace. In this case, here is the repository. Use this link to get to the source code and fine package.json.
Now, you can modify any of the properties and see how they work. First, you will need to set up two setting properties that do not belong in this exception settings set, typescript.suggest.paths
and javascript.suggest.paths
, as you already mentioned in your question. Then you may need to modify some of the extension settings.
To do so, you first decide if you want to change the setting per User or per Workspace. I suggest you do everything with the Workspace settings, and only later decide in you want to make all or some of them prescribed per User. If you use Workspace settings, they are stored in your Workspace's file .vscode/settings.json, so you can easily modify or remove this file if something goes wrong.
Use [Main menu] > File > Preferences > Settings (Ctrl+,). On the setting page, activate one of the tabs, User or Workspace. In the search input control on top, start typing the property name starting with “path intellisense”…
Note one important feature: the modified setting property becomes active immediately. Even if you manually open and edit the file .vscode/settings.json, VSCode detects when you save it and activates the required feature controlled by the modified setting properties.
If you have any issues specific to this particular extension or have questions, you can post your report on the product's issues page.
Upvotes: 0