You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 12-running-vscode.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ There are many other features and ways to access them, and we'll cover key ones
58
58
59
59
Extensions are a major strength of VSCode. Whilst VSCode appears quite lightweight, and presents a simple interface (particularly compared to many other IDEs!), this is quite deceptive.
60
60
You can extend its functionality in many different ways.
61
-
or example, installing support for other languages, greater support for version control, there's even support for working with databases, and so on.
61
+
For example, installing support for other languages, greater support for version control, there's even support for working with databases, and so on.
62
62
There are literally tens of thousands of possible extensions now.
63
63
64
64
Now VSCode already comes with built-in support for JavaScript, including TypeScript and node.js,
@@ -67,24 +67,24 @@ Installing a language extension will allow you to do more things with that parti
67
67
68
68
Let's install an extension now:
69
69
70
-
1. Firstly, select the extensions icon first, then type in Python into the search box at the top, and it'll give you a list of all python-related extensions.
70
+
1. Firstly, select the extensions icon, then type in "Python" into the search box at the top, and it'll give you a list of all Python-related extensions.
71
71
1. Select the one which says `Python` from Microsoft. This is the Microsoft official Python extension.
72
72
1. Then select `Install`.
73
73
74
74
It might take a minute - you can see a sliding blue line in the top left to indicate it's working.
75
75
Once complete, you should see a couple of "Welcome" windows introducing you to two of its key features - support for Python and Jupyter notebooks.
76
76
If you use Jupyter notebooks, which is a way of writing Python programs that you can run line by line from within an editor as you write the program, you may find this useful.
77
77
78
-
For now, let's configure this extension for our Python development, and to do that, we need to do is tell VSCode which Python installation on our machine we'd like it to use. In the Python Welcome window, select `Select a Python interpreter`, and then `Select Python interpreter`.
79
-
You may find you have many installations of Python, or only have one. Try to select one later than 3.8 if you can.
80
-
Then select `Mark done`, and close the welcome windows.
78
+
For now, let's configure this extension for our Python development, and to do that, we need to tell VSCode which Python installation on our machine we'd like it to use. In the Python Welcome window, select `Select a Python interpreter`, and then `Select Python interpreter`.
79
+
You may find you have many installations of Python, or only have one. Try to select the version later than 3.8 if you can.
80
+
Then select `Mark done`, and close the Welcome window.
81
81
82
82
## A Sample Project
83
83
84
84
FIXME: copy code-style-example repo to softwaresaved's organisation
85
85
86
86
Next, let's obtain some example Python and edit it from within VSCode.
87
-
So first, you can download the example code we'll use from https://github.com/UNIVERSE-HPC/code-style-example/releases/tag/v1.0.0, either as a `.zip` or `.tar.gz` compressed archive file.
87
+
First, download the example code we'll use from https://github.com/UNIVERSE-HPC/code-style-example/releases/tag/v1.0.0, either as a `.zip` or `.tar.gz` compressed archive file.
88
88
If you're unsure, download the `.zip` file.
89
89
Then, extract all the files from the archive into a convenient location.
90
90
You should see files contained within a new directory named `code-style-example-1.0.0`.
@@ -103,9 +103,9 @@ Note that we're looking for the *folder* that contains the files, not a specific
103
103
104
104
If your system has the Git version control system installed, you may see a `Clone Repository` option here too.
105
105
If you are familiar with Git and wish to use this option instead,
106
-
select this option instead and enter the repository's location as `https://github.com/UNIVERSE-HPC/code-style-example`.
106
+
select it and enter the repository's location as `https://github.com/UNIVERSE-HPC/code-style-example`.
107
107
Then use the file browser that is presented to find a convenient location to store the cloned code and click on `Select as Repository Destination`,
108
-
then select `Open` when ‘Would you like to open the cloned repository?' appears.
108
+
then select `Open` when ‘Would you like to open the cloned repository?' popup appears.
109
109
110
110
:::::::::::::::::::::::::::::::::::::::::
111
111
@@ -126,7 +126,7 @@ So next, let's look at editing code.
126
126
127
127
::::::::::::::::::::::::::::::::::::: keypoints
128
128
129
-
- Key VSCode features are accessible via the left navigation bar and the menu.
129
+
- Key VSCode features are accessible via the left navigation bar and the menu
130
130
- VSCode's capabilities can be increased by installing extensions
131
131
- Language-specific support is available via extensions
132
132
- A VSCode "workspace" is a project that consists of a collection of folder and files
0 commit comments