Open kieranpotts opened 1 year ago
Drop this into your .bashrc / .zshrc file and use it to move into a directory and open VSCode in it:
.bashrc
.zshrc
cdc () { cd "$1" && code . }
e.g. cdc ~/projects/my_repo will open VSCode in the my_repo folder
cdc ~/projects/my_repo
my_repo
Drop this into your
.bashrc
/.zshrc
file and use it to move into a directory and open VSCode in it:e.g.
cdc ~/projects/my_repo
will open VSCode in themy_repo
folder