uchicago-cs / student-resource-guide

UChicago CS Student Resource Guide
BSD 3-Clause "New" or "Revised" License
12 stars 5 forks source link

Write guide for setting up VS Code #5

Open vaargueta opened 2 years ago

vaargueta commented 2 years ago

Add an article on how to set up VS Code for coursework within the department.

The article should contain the following:

In addition to the above, I would suggest including the following:

The official documentation would be a great resource for writing this guide.

vaargueta commented 2 years ago

Space Indentation

Extensions

vaargueta commented 2 years ago

Basic Features

Shortcuts

See this documentation

Rulers

Preferences > Settings > Editor:Rulers Add the following to the settings.json file.

"editor.rulers": [80,120]

"workbench.colorCustomizations": {
    "editorRuler.foreground": "#ff4081"
}

Bash

  1. Open the integrated terminal.
  2. Click on the drop down next to the plus sign.
  3. Click Select Default Profile
  4. Select bash.

Python Testing Extension

The Python Testing Extension provides an integrated interface on the panel GUI to run tests with single button presses. See the documentation.

jamesturk commented 2 years ago

I think this is a great idea, as a non-VS code user, I'd be glad to help look at it from the eyes of someone "new" to VS Code.

I wound up here because I am noticing a lot of students have Pylance installed, which by default has auto-import behavior that is not great for new users. It is leading to people submitting assignments with half a dozen imports at the top that aren't intended.

e.g. they try to use a constant named NUMBER, accept the autocompletion and wind up with a from lib2to3.pgen2.token import NUMBER at the top of their file.

So I'd like to suggest that we mention this caveat and recommend disabling that Pylance feature.