Skip to content

Commit 421542e

Browse files
committed
Address inconsistency in VS Code UI on Windows/Linux and Mac OS around preferences.
1 parent 9ab4fae commit 421542e

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

episodes/13-ides.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ in it, it is a good practice to tell your IDE which Python interpreter you want
199199
This is because you may have multiple Python versions installed on your system and also because you may not have
200200
set a virtual environment from command line so you should do if from the IDE instead.
201201

202-
1. Select either `PyCharm` > `Settings` (Mac) or `File` > `Settings` (Linux, Windows).
202+
1. Select either `PyCharm -> Settings` (Mac) or `File -> Settings` (Linux, Windows).
203203
2. In the window that appears,
204-
select `Project: python-intermediate-inflammation` > `Python Interpreter` from the left.
204+
select `Project: python-intermediate-inflammation -> Python Interpreter` from the left.
205205
You'll see a number of Python packages displayed as a list, and importantly above that,
206206
the current Python interpreter that is being used.
207207
These may be blank or set to `<No interpreter>`,
@@ -286,9 +286,9 @@ an alternative way of doing this and how it propagates to the command line.
286286

287287
### PyCharm
288288

289-
1. Select either `PyCharm` > `Settings` (Mac) or `File` > `Settings` (Linux, Windows).
289+
1. Select either `PyCharm -> Settings` (Mac) or `File -> Settings` (Linux, Windows).
290290
2. In the preferences window that appears,
291-
select `Project: python-intermediate-inflammation` > `Project Interpreter` from the left.
291+
select `Project: python-intermediate-inflammation -> Project Interpreter` from the left.
292292
3. Select the `+` icon at the top of the window.
293293
In the window that appears, search for the name of the library (`pytest`),
294294
select it from the list,
@@ -423,7 +423,7 @@ runtime parameters/environment variables (i.e. additional configuration options)
423423
and use on top of virtual environments.
424424

425425
1. To add a new Run Configuration for a project -
426-
select `Run` > `Edit Configurations...` from the top menu.
426+
select `Run -> Edit Configurations...` from the top menu.
427427
2. Select `Add new run configuration...` then `Python`.
428428
![](fig/pycharm-add-run-configuration.png){alt='Adding a Run Configuration in PyCharm' .image-with-shadow width="800px" }
429429
3. In the new popup window, in the `Script path` field select the folder button
@@ -477,7 +477,7 @@ You can access and change user/workspace settings values in a few ways:
477477

478478
- Select the `Preferences: Open User Settings` or `Preferences: Open User Settings (JSON)` in the **Command Palette** (via keyboard shortcut `CTRL-SHIFT-P`/`CMD-SHIFT-P`) - for user settings
479479
- Select the `Preferences: Open Workspace Settings` or `Preferences: Open Workspace Settings (JSON)` in the **Command Palette** (via keyboard shortcut `CTRL-SHIFT-P`/`CMD-SHIFT-P`) - for workspace settings
480-
- Select the User or Workspace tab in the **Settings editor** (via `File -> Settings` or keyboard shortcut `CTRL-,`/`CMD-,`)
480+
- Select the User or Workspace tab in the **Settings editor** (via `File -> Preferences -> Settings` on Windows and Linux or `Code -> Settings -> Settings` on Mac OS, or keyboard shortcut `CTRL-,`/`CMD-,`)
481481

482482
![](fig/vscode-settings.png){alt='Settings editor in VS Code' .image-with-shadow width="1000px" }
483483

episodes/15-coding-conventions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,20 @@ You can also control the amount of spaces that the IDE uses to replace one tab c
121121
### PyCharm
122122

123123
By default, PyCharm inserts spaces and uses 4 spaces per tab key.
124-
You can modify these settings in PyCharm's `Settings`\>`Editor`\>`Code Style`\>`Python`.
124+
You can modify these settings in PyCharm's `Settings -> Editor -> Code Style -> Python`.
125125

126126
![](fig/pycharm-indentation.png){alt='Python code indentation settings in PyCharm' .image-with-shadow width="1000px"}
127127

128128
You can also tell the editor to show non-printable characters
129129
if you are ever unsure what character exactly is being used
130-
by selecting `Settings` > `Editor` > `General` > `Appearance` then checking "Show whitespaces" option.
130+
by selecting `Settings -> Editor -> General -> Appearance` then checking "Show whitespaces" option.
131131

132132
![](fig/pycharm-whitespace.png){alt='Python code whitespace settings in PyCharm' .image-with-shadow width="800px"}
133133

134134
### VS Code
135135

136136
By default, VS Code inserts spaces and uses 4 spaces per tab key.
137-
You can modify these settings in VS Code's user or workspace settings (`File -> Settings` then search for `tabSize` and enter the value you want).
137+
You can modify these settings in VS Code's user or workspace settings (`File -> Preferences -> Settings` on Windows and Linux or `Code -> Settings -> Settings` on Mac OS, then search for `tabSize` and enter the value you want).
138138
You also need to make sure `Editor: Detect Indentation` field is checked.
139139

140140
![](fig/vscode-whitespace.png){alt='Python code whitespace settings in VC Code' .image-with-shadow width="1000px"}

0 commit comments

Comments
 (0)