Recommended Visual Studio CodeEditor Settings

All of the settings below can be accessed using the following steps:

  • Mac: cmd + , -> Editor
  • PC: ctrl + , -> Editor

Setting indentation levels / default tab-size

During our course we will be using a set indentation level of 2 spaces (1 indentation level = 2 spaces). Visual Studio Codemakes it easy conform to this approach by setting our tab to a set level of indentation.

After updating this setting, pressing the tab key will represent one level of indentation which will translate to 2 spaces.

This is an image

Displaying indentation guides

Displaying the indentation guide provides a visual way of helping you ensure your indentation levels are correct

This is an image

Setting wordwrap

Wordwrap ensures that long lines in your code are automatically wrapped to the next line. This improves readability of your code.

This is an image