As I did in the past for Atom, here is a post on extensions for VScode.
I’ll try to list my installed extensions by reverse order of personal use.
Note for Codium users
Some extensions of marketplace.visualstudio are not available in analog Codium store (open-vsx.org)
But 99% of the time you can then download the
VSIXif the plugin on the marketplace page
Then in Codium, go to extension toolbar > suspensions dots at upper right
...> Install from VSIX
python quick print
Nothing worse than relentlessly type print(“variable”, variable).
You need to add a shortcut manually in your keybindings (look for
alt + P, you can add it directly to your
keymap.json with this:
alt + A /
alt + Z extend selection to quotes, bracket, parenthesis and other pairs.
Can’t live without it!
Note: When the word is not surrounded by delimiters I use
ctrl + shift+ spacebar to extend, but I think it was added by the sublime extension (listed below)
ctrl + T swap two selected words, or two letters around cursor if no selection.
alt + ]/[ swap elements according to their separators, easily flip pair
variable = valeur.
Launch Blender from VScode console with debugger / break point / clickable error line…
Allow Modify External Python in plugin preferences if package do not install correctly
If needed package still ont install (ex: debuggy failed to install ) Blender probably don’t have pip.
In this cases run the following lines in blender text editor or console:
Tips: In prefs, you can also tick reload on save
Ctrl + S
ctrl + alt + i, Mac:
cmd + alt + i
More practical than it seems, for example to lay zeros in multi cursors then generate incrementation.
Selected Lines Count
Show line count in the bottom bar, because this should be default.
A Swiss-army-knife for Git that does too many things to list them here.
Add right-click menu entry to compare visible editors or current editor with clipboard’s text, and more.
alt + B
This might seem pushing the laziness a bit far, but it’s actually enjoyable to flip values with a shortcut:
True <-> False,
true <-> false,
yes <-> no,
on <-> off,
0 <-> 1
Insert Date String
Because we always need to insert a date time in a changelog or else.
A useful extension to use some keywords as bookmark.
A lot of customizations are available, so look at the doc.
Not a big fan of default settings though (like highlighting keywords).
Here are my own preferences, you can add to settings using
Note that extension Bookmarks (
alefragnani.Bookmarks) allow to create bookmarks without adding any keywords in to files.
Ctrl + . to have proposition for underline possible error.
Sometimes we write natural languages in dev oriented editors. Like this post, written in markdown right in VScode! And that’s why it’s nice to enable some dictionaries.
In the same spirit: LTeX – LanguageTool grammar/spell checking (
valentjn.vscode-ltex) using language tool.
Ctrl+Shit+P > change case
you suddenly decide to conform code to pep-8 but you should edit or your Class definitions ?
Align elements on a multiline selection. multiple methods are proposed:
First Occurrence, Each Occurrence, Transpose Lines, Transpose List, Transpose HTML
For very specific alignement needs, there is also a similar plugin based on regex:
Align by RegEx
Or an alternative based on multi-cursor alignment.
ctrl + shift + v ; Mac :
cmd + shift + v Swap selection with paperclip
Integrated calculator, solve math operation after laying down the
Not even needed to select text and call eval with Emmet .
Create nice diagran to explain things directly in VScode.
Add SVG preview, so you can read your previously exported diagram ;)
Separated value coloration for CSV and exports options.
Sublime Text Keymap and Settings Importer
Because I’m so used to
Sublime Text shortcuts.
The extension seem to add some features and/or shortcuts that aren’t in vanilla VScode.
Ctrl + K > Ctrl + U and
Ctrl + K > Ctrl + L for Upper / Lower case, super useful.
The simple way is to install using dedicated toolbar search, but extensions can also install through command line interface using plugin’s Id (
code --install-extension AhadCove.python-quick-print (add
--force to avoid prompts).
If you’re on
codium (well done!), replace
Installation can also happen with a palette command (
ctrl+maj+p) in VScode using keyword
ext install AhadCove.python-quick-print
Bonus : A lithe python script you can use to generate a list of
link to page from installed plugins.
Thanks to Swann Martinez and Xavier Petit for discussing extensions usage.
Without extensions, it starts faster. But with it goes further (From knowledgeable devs wisdoms).