Skip to content

Commit 531e10c

Browse files
committed
Add VS Code Open a Repository howto.
1 parent 393e97a commit 531e10c

2 files changed

Lines changed: 44 additions & 1 deletion

File tree

docs/intro.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Python Class
1515

1616
Welcome to the new and improved Python class.
1717

18-
:::{tip}
18+
:::{admonition}
19+
:class: tip
1920

2021
* Use the left sidebar to navigate lessons, guides and all of the other class content.
2122

docs/tools/vscode.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,3 +649,45 @@ Themes
649649
[One Dark Raincoat Light]: ../assets/raincoat-light.png
650650
[Dolch Light]: ../assets/dolch-light.png
651651

652+
653+
How-To
654+
------
655+
656+
### Open a Repository
657+
658+
:::::{margin}
659+
660+
:::{note}
661+
662+
This how-to assumes you have already cloned the repository locally.
663+
664+
:::
665+
666+
:::::
667+
668+
1. Open a new VS Code window.
669+
- **Using the keyboard shortcut**: {kbd}`⌃⇧N` (Windows/Linux) or {kbd}`⌘⇧N` (Mac).
670+
- **Or from the top VS Code menu bar**: Select {guilabel}`File › New Window`.
671+
2. Open the repository.
672+
- If you have opened the repository at some point in the past, go to the
673+
top VS Code Menu Bar and select {guilabel}`File › Open Recent` then
674+
choose the repository you wish to open from the drop-down list.
675+
- Otherwise, open the folder:
676+
- **Using the Command Pallet**: Use {kbd}`⌃⇧P` (Windows/Linux) or {kbd}`⌘⇧P` (Mac) to open the command pallet, then use the {guilabel}`File: Open Folder...` command.
677+
- **Or from the top VS Code menu bar**: Go to {guilabel}`File › Open Folder`.
678+
- ::::{margin}
679+
680+
:::{caution}
681+
682+
Make sure you open the folder, not an individual file.
683+
684+
:::
685+
686+
:::::
687+
Your system's Open File Dialog Box will appear. Navigate to the location of
688+
the repository on your computer, select the folder , then click
689+
{guilabel}`Open`.
690+
3. Pull repository updates using git.
691+
- **Using the Command Pallet**: Use {kbd}`⌃⇧P` (Windows/Linux) or {kbd}`⌘⇧P` (Mac) to open the command pallet, then use the {guilabel}`Git: Pull` command.
692+
- **Or from the {guilabel}`Source Control` sidebar**: On the {guilabel}`Repositories` sub-header, click on the second icon from the left to pull.
693+
- **Or from the terminal**: Open the terminal using {{ ctrltick }} then type `git pull`.

0 commit comments

Comments
 (0)