Different Zoom for every instance
Go to File -> Preferences -> Settings -> Workspace and check the entry Editor: Mouse Wheel Zoom
or set
"editor.mouseWheelZoom": true
Format code on saving
Go to File -> Preferences -> Settings -> Workspace and check the entry Editor: Format on Save
Undescore not visible on integrated terminal
Change the terminal font size: "terminal.integrated.fontSize": 13
Use a specific version of an extension
In my case for a bug I want to use rust-analyzer 0.2.694 (the current is 0.2.702 but it gives me some trouble) by matkland
- Uninstall the extension from Visual Studio Code
- Reload vsc
- Download the extension from the vsc repo:
https://${publisher}.gallery.vsassets.io/_apis/public/gallery/publisher/${publisher}/extension/${extension_name}/${version}/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
replace ${publisher}, ${extension_name}, ${version}
in my case:
https://matklad.gallery.vsassets.io/_apis/public/gallery/publisher/matklad/extension/rust-analyzer/0.2.694/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
- Rename the downloaded file with extension
.vsix
- To prevent auto-update we can disable the auto update for all the installed extension:
- in the vsc Settings:
"extensions.autoUpdate": false
or we can modify the downloaded extension to make it look like the newest version:
- Rename the downloaded file with extension
- Open the extension file as as an archive
- Open the file
extension/package.json
in a text editor - Replace the version with the current or a future one version
in my case I've modified "0.2.694" into "0.2.702" so the version will update when a new (and hopefully bug fixed) version will be available - On vsc open the Command Palette
Ctrl + Shift + P
-> search forvsix
-> Install from vsix file - Reload vsc
Sources:
- https://tpodolak.com/blog/2017/04/09/downgrading-visual-studio-code-extension/
- https://stackoverflow.com/questions/51965933/how-to-stop-a-single-vs-code-extension-from-auto-update
Or simply:
- Click on the settings of the installed extension (gear icon)
- Click on
Install another version
- Choose the version that you need
Profiles
// TODO
Profiles: https://dev.to/jsjoeio/how-to-create-code-profiles-in-vscode-3ofo