Installation VSCode

Download VSCode from its webpage and install it.

Settings

For beginners course, you should install Python extension for VS Code.

When you open the VS Code, on the left side bar, choose the Extensions (Ctrl + Shift + X) with icon of four cubes.

Next, in the top search bar of Extensions, search for Python and in the list of extensions, which appears, select and install the first suggested package: Python - authored by Microsoft. You can install the package by clicking the small button Install placed in the bottom of the item in the list or after clicking the item in the newly opened panel and on top of the page, there should be a small button install.

Automatic indentation and desired code colouring (for our purposes) works only when the file has a .py extension. So it's better if you save your newly created file ending with .py as early as possible.

Indentation practice

It's important in Python by how much spaces a line is indented. So we will have to learn to quickly indent block of text.

First of all copy following text into your editor.

OPHELIA:
Good my lord,
How does your honour for this many a day?
HAMLET:
I humbly thank you; well, well, well.
OPHELIA:
My lord, I have remembrances of yours,
That I have longed long to re-deliver;
I pray you, now receive them.
HAMLET:
No, not I;
I never gave you aught.
OPHELIA:
My honour'd lord, you know right well you did;
And, with them, words of so sweet breath composed
As made the things more rich: their perfume lost,
Take these again; for to the noble mind
Rich gifts wax poor when givers prove unkind.
There, my lord.

Hamlet, W. Shakespeare

This text is not well-arranged so we will indent it like that:

OPHELIA:
    Good my lord,
    How does your honour for this many a day?
HAMLET:
    I humbly thank you; well, well, well.
OPHELIA:
    My lord, I have remembrances of yours,
    That I have longed long to re-deliver;
    I pray you, now receive them.
HAMLET:
    No, not I;
    I never gave you aught.
OPHELIA:
    My honour'd lord, you know right well you did;
    And, with them, words of so sweet breath composed
    As made the things more rich: their perfume lost,
    Take these again; for to the noble mind
    Rich gifts wax poor when givers prove unkind.
    There, my lord.

To indent one line set you coursor in the beginning of the line and press Tab. With every press you will indent the like by 4 spaces.

If you indent too much, press Shift+Tab.

If you would want to indent more lines just highlight them and press Tab. For undo press Shift+Tab.