Setting Up a Development Environment

An introduction to Visual Studio Code

Land Acknowledgement

UBC Vancouver is located on the traditional, ancestral, and unceded territory of the xʷməθkʷəy̓əm (Musqueam), səl̓ilwətaɁɬ təməxʷ (Tsleil-Waututh), Stz’uminus, S’ólh Téméxw (Stó:lō), Skwxwú7mesh-ulh Temíx̱w (Squamish), and Coast Salish peoples.

Please take a moment to explore native-land.ca so that you can visualize the indigenous territories, languages, and treaties in your area.

Outline

  • What is a Development Environment?
  • Editors
  • Visual Studio Code
  • Terminal
  • Source Control
  • Remote Machines

What is a Development Environment?

What is a Development Environment?

  • Code editor
  • Command line interface (CLI)
  • Version control system
  • Package manager

What is a Development Environment?

Editors

  • syntax highlighting
  • syntax checking
  • code completion
  • automatic code formatting
  • powerful text manipulation and scrolling tools

Editors

Vim

https://en.wikipedia.org/wiki/File:Vim-(logiciel)-console.png

Editors

GNU Emacs

https://en.wikipedia.org/wiki/File:Emacs27_showing_Org,_Magit,_and_Dired_with_the_modus-operandi_theme.png

Editors

Nano

https://www.nano-editor.org/

Editors

TextMate

https://macromates.com/

Editors

Sublime Text

https://www.sublimetext.com/

Editors

Atom

https://atom.io/

Editors

Visual Studio Code

Computational Notebooks

Jupyter notebooks

https://starfishmedical.com/blog/using-the-jupyter-notebook-for-product-prototyping/

Visual Studio Code

Installing

Download Visual Studio Code

User Interface

Keyboard Shortcuts

Find and Replace

What are regular expressions?

Regex expression

from https://devopedia.org/regular-expression

Check out our workshop on Regular Expressions

Exercise 1

Multiple Cursers

Themes

Settings

  • User Settings
  • Workspace Settings

Extensions

TODO Highlight

TODO highlight

https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight

Extensions

Prettier

Prettier

https://www.codereadability.com/automated-code-formatting-with-prettier/

Extensions

Configure VS Code for Python

Install Python

Formatting and Linting

Run, Debug, and Test

Terminal

  • Windows shell
    • Command Prompt
    • Powershell
  • Unix shell
    • Bash
    • Z shell

Source Control

Download Git

Introduction to Git and GitHub

Git workflow

from https://www.youtube.com/watch?v=gLWSJXBbJuE

Remote Machines

Remote Developer Extension

More from the Research Commons at (UBC-V)

And from the Center for Scholarly Communication (UBC-O)