Skip to content

Commit cf43c3e

Browse files
committed
Add Add The VSCode CLI To Your Path as a vscode til
1 parent 6beb485 commit cf43c3e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
1010
For a steady stream of TILs from a variety of rocketeers, checkout
1111
[til.hashrocket.com](https://til.hashrocket.com/).
1212

13-
_691 TILs and counting..._
13+
_692 TILs and counting..._
1414

1515
---
1616

@@ -796,6 +796,7 @@ _691 TILs and counting..._
796796

797797
## VSCode
798798

799+
- [Add The VSCode CLI To Your Path](vscode/add-the-vscode-cli-to-your-path.md)
799800
- [Open An Integrated Terminal Window](vscode/open-an-integrated-terminal-window.md)
800801
- [Toggle Between Terminals](vscode/toggle-between-terminals.md)
801802

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Add The VSCode CLI To Your Path
2+
3+
Visual Studio Code has a command line tool that can do a bunch of things.
4+
Perhaps the most common is opening up the current directory from the
5+
command line.
6+
7+
First, you need to add `code` to your path. This can be done from within
8+
Code itself.
9+
10+
Hit `Cmd+Shift+p` to pop open the command palette. Then start typing `Shell
11+
Command ...` until the `Shell Command: Install "code" command in shell PATH`
12+
option appears. Select this and Code will add `code` to your path.
13+
14+
Try `code .` to open the current directory or run `code --help` for more
15+
details on what's available.

0 commit comments

Comments
 (0)