Github Copilot and VSCode Setup

  1. Sign up on and get verified on GitHub Global Campus as a teacher.
  2. Sign up for GitHub Copilot for your personal account.
  3. Install VSCode Insiders
  4. Install the following extensions:
    • GitHub: Copilot Nightly, Copilot Labs, Copilot Chat
    • Python
    • Jupyter

Settings

  1. Open the command palette (Ctrl+Shift+P) and type Preferences: Open Settings (JSON).
  2. Search for execute selection and check the box.
  3. Code away
import numpy as np

x = np.linspace(0, 1, 100)

# Plot the function $y=\tanh(x)$

(Ctrl+Enter) lists suggestions; (Shift+Enter) executes the selection.