kieranpotts / dotfiles

A baseline, extensible UNIX user configuration.
MIT License
1 stars 0 forks source link

VSCode shortcuts #176

Open kieranpotts opened 1 year ago

kieranpotts commented 1 year ago

Drop this into your .bashrc / .zshrc file and use it to move into a directory and open VSCode in it:

cdc () {
  cd "$1" && code .
}

e.g. cdc ~/projects/my_repo will open VSCode in the my_repo folder