From cf43c3eddf4f34b46ae7bda3c87ff46e2d81902b Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 19 Jul 2018 16:49:29 -0500 Subject: [PATCH] Add Add The VSCode CLI To Your Path as a vscode til --- README.md | 3 ++- vscode/add-the-vscode-cli-to-your-path.md | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 vscode/add-the-vscode-cli-to-your-path.md diff --git a/README.md b/README.md index ef46dd5..6af4f76 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_691 TILs and counting..._ +_692 TILs and counting..._ --- @@ -796,6 +796,7 @@ _691 TILs and counting..._ ## VSCode +- [Add The VSCode CLI To Your Path](vscode/add-the-vscode-cli-to-your-path.md) - [Open An Integrated Terminal Window](vscode/open-an-integrated-terminal-window.md) - [Toggle Between Terminals](vscode/toggle-between-terminals.md) diff --git a/vscode/add-the-vscode-cli-to-your-path.md b/vscode/add-the-vscode-cli-to-your-path.md new file mode 100644 index 0000000..91a4249 --- /dev/null +++ b/vscode/add-the-vscode-cli-to-your-path.md @@ -0,0 +1,15 @@ +# Add The VSCode CLI To Your Path + +Visual Studio Code has a command line tool that can do a bunch of things. +Perhaps the most common is opening up the current directory from the +command line. + +First, you need to add `code` to your path. This can be done from within +Code itself. + +Hit `Cmd+Shift+p` to pop open the command palette. Then start typing `Shell +Command ...` until the `Shell Command: Install "code" command in shell PATH` +option appears. Select this and Code will add `code` to your path. + +Try `code .` to open the current directory or run `code --help` for more +details on what's available.