🧐
/
🎧 ⏐ VS Code
/
2. Extensions

Extensions

Installing VS Code Extensions in Bulk

To streamline the process of installing multiple Visual Studio Code extensions, you can use the following steps.

This method involves creating a text file with the names of the extensions and then using a command to install them all at once.

Steps:

1. Open Terminal

First, open your terminal and create a new text file using nano.

nano vs-ext.txt

2. Add Extension Names

In the nano editor, paste the names of the extensions you want to install.

Each extension name should be on a new line.

For example, this is my extensions list:

nur.just-black
fosshaas.fontsize-shortcuts
vscode-icons-team.vscode-icons
dbaeumer.vscode-eslint
esbenp.prettier-vscode
quicktype.quicktype
vunguyentuan.vscode-postcss
streetsidesoftware.code-spell-checker
yoavbls.pretty-ts-errors
quicktype.quicktype
adpyke.codesnap
rangav.vscode-thunder-client
DotJoshJohnson.xml
bradlc.vscode-tailwindcss
dsznajder.es7-react-js-snippets
infarkt.css-to-jss
paulmolluzzo.convert-css-in-js
styled-components.vscode-styled-components
Vue.volar
svelte.svelte-vscode
Prisma.prisma
otovo-oss.htmx-tags
bierner.markdown-mermaid

After you've pasted the extension names, save and exit nano:

Press Control + X to start the exit process. Press Control + Y to confirm that you want to save the changes. Press Enter to confirm the file name and save the file.

3. Install the Extensions

Now that you have a text file (vs-ext.txt) with the extension names, you can install all the extensions listed in the file at once using the following command:

cat vs-ext.txt | xargs -L1 code --install-extension

This command does the following:

  • cat vs-ext.txt: Reads the contents of vs-ext.txt.
  • xargs -L1: Passes each line of the file as a separate argument to the next command.
  • code --install-extension: The VS Code command to install an extension.

By following these steps, you can efficiently install multiple VS Code extensions without having to manually install each one individually. This is particularly useful when setting up a new development environment or sharing a common set of tools with a team.

Last updated on June 11, 2024