A VS Code extensions manifest (#snippet)

Today I read a post about Matthias Ott’s VS Code setup. I love these posts because you can always discover new things.
After I finished reading it, it tweeted it and shared that you can also handle your VSCode extension setup via yo…


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Today I read a post about Matthias Ott's VS Code setup. I love these posts because you can always discover new things.

After I finished reading it, it tweeted it and shared that you can also handle your VSCode extension setup via your terminal.

code --install-extension extensionAuthor.extensionName

So far, I've been maintaining a script in my dotfiles to manage my extensions. Meaning, whenever I added a new extension, I had to update this script manually. @shdli answered me with a way nicer approach. He called it a "manifest'y approach". ?

# backing up VS Code extensions
code --list-extensions > "./visual-studio-code-extensions.txt"

# installing VS Code extensions
cat  "./visual-studio-code-extensions.txt" | xargs -L 1 code --install-extension

Using code --list-extensions I can install my extensions via VS Code and then generate the extension listing which will be re-used to install them. That's very sweet!

This new approach immediately led to me introducing commands like install and backup in my dotfiles. ?


Reply to Stefan


This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis


Print Share Comment Cite Upload Translate Updates
APA

Stefan Judis | Sciencx (2020-03-18T22:00:00+00:00) A VS Code extensions manifest (#snippet). Retrieved from https://www.scien.cx/2020/03/18/a-vs-code-extensions-manifest-snippet/

MLA
" » A VS Code extensions manifest (#snippet)." Stefan Judis | Sciencx - Wednesday March 18, 2020, https://www.scien.cx/2020/03/18/a-vs-code-extensions-manifest-snippet/
HARVARD
Stefan Judis | Sciencx Wednesday March 18, 2020 » A VS Code extensions manifest (#snippet)., viewed ,<https://www.scien.cx/2020/03/18/a-vs-code-extensions-manifest-snippet/>
VANCOUVER
Stefan Judis | Sciencx - » A VS Code extensions manifest (#snippet). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/03/18/a-vs-code-extensions-manifest-snippet/
CHICAGO
" » A VS Code extensions manifest (#snippet)." Stefan Judis | Sciencx - Accessed . https://www.scien.cx/2020/03/18/a-vs-code-extensions-manifest-snippet/
IEEE
" » A VS Code extensions manifest (#snippet)." Stefan Judis | Sciencx [Online]. Available: https://www.scien.cx/2020/03/18/a-vs-code-extensions-manifest-snippet/. [Accessed: ]
rf:citation
» A VS Code extensions manifest (#snippet) | Stefan Judis | Sciencx | https://www.scien.cx/2020/03/18/a-vs-code-extensions-manifest-snippet/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.