Skip to content

Commit a49c5c6

Browse files
authored
Merge pull request #1561 from kraigb/kraigb-pythonfeedback
Address a few customer comments
2 parents 6819d82 + 29971d6 commit a49c5c6

6 files changed

+12
-8
lines changed

docs/python/debugging-python-in-visual-studio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ The **Debug > Windows > Exception Settings** menu command brings up a window in
127127

128128
The checkbox for each exception controls whether the debugger *always* breaks when it is raised. Check this box when you want to break more often for a particular exception.
129129

130-
By default, most exceptions break when an exception handler cannot found in the source code. To change this behavior, right-click any exception and check or uncheck **Continue When Unhandled in User Code**. Clear this box when you want to break less often for an exception.
130+
By default, most exceptions break when an exception handler cannot be found in the source code. To change this behavior, right-click any exception and check or uncheck **Continue When Unhandled in User Code**. Clear this box when you want to break less often for an exception.
131131

132132
To configure an exception that does not appear in this list, click the **Add** button to add it. The name must match the full name of the exception.
133133

@@ -156,7 +156,7 @@ By default, the debugger starts your program with the standard Python launcher,
156156
| Interpreter Path | Overrides the path associated with the current environment. value may be useful for launching your script with a non-standard interpreter. |
157157
| Environment Variables | In this multi-line text box, add entries of the form `NAME=VALUE`. Because this setting is applied last, on top of any existing global environment variables, and after `PYTHONPATH` is set according to the Search Paths setting, it can be used to manually override any of those other variables. |
158158

159-
<a name="the-debug-interactive-window"</a>
159+
<a name="the-debug-interactive-window"></a>
160160

161161
## Immediate and interactive windows
162162

docs/python/formatting-python-code.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@ Visual Studio lets you quick reformat code to match pre-configured formatting op
2626
- To format a selection: select **Edit > Advanced > Format Selection** or press Ctrl+E,F.
2727
- To format the whole file: select **Edit > Advanced > Format Document** or press Ctrl+E,D.
2828

29-
Options are set through **Tools > Options > Text Editor > Python > Formatting** and its nested tabs, and by default are set to match a superset of the [PEP 8 style guide](http://www.python.org/dev/peps/pep-0008/). The **General** tab determines when formatting is applied; settings the other three tabs are described in this article.
29+
Options are set through **Tools > Options > Text Editor > Python > Formatting** and its nested tabs. You need to select **Show all settings** for these options to appear:
3030

31-
[Python support in Visual Studio](installing-python-support-in-visual-studio.md) also adds the useful [Fill Comment Paragraph](#fill-comment-paragraph-command) command to the **Edit > Advanced** menu as described that follow.
31+
![Python formatting options in Visual Studio](media/options-editor-formatting.png)
32+
33+
Formatting options by default are set to match a superset of the [PEP 8 style guide](http://www.python.org/dev/peps/pep-0008/). The **General** tab determines when formatting is applied; settings for the other three tabs are described in this article.
34+
35+
[Python support in Visual Studio](installing-python-support-in-visual-studio.md) also adds the useful [Fill Comment Paragraph](#fill-comment-paragraph-command) command to the **Edit > Advanced** menu as described in a later section.
3236

3337
## Spacing
3438

@@ -132,4 +136,4 @@ changes to:
132136
```python
133137
# This is a very long long long long long long long long long long long long
134138
# long long long long long long long comment
135-
```
139+
```

docs/python/managing-python-projects-in-visual-studio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ A new project is always associated with the default global Python environment. T
5656

5757
![Activating an environment for a Python project](media/projects-activate-environment.png)
5858

59-
<a name="project-types"</a>
59+
<a name="project-types"></a>
6060

6161
## Project templates
6262

22.8 KB
Loading

docs/python/python-environments-window-tab-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ As you use interactive windows in your everyday workflow, you likely develop hel
5151

5252
Startup scripts contain code that the interactive window loads and runs automatically, including imports, function definitions, and literally anything else. Such scripts are referenced in two ways:
5353

54-
1. When you install an environment, Visual Studio creates a folder `Documents\Visual Studio 2017\Python Scripts\<environment>` where &lt;environment&gt' matches the name of the environment. You can easily navigate to the environment-specific folder with the **Explore interactive scripts** command. When you start the interactive window for that environment, it loads and runs whatever `.py` files are found here in alphabetical order.
54+
1. When you install an environment, Visual Studio creates a folder `Documents\Visual Studio 2017\Python Scripts\<environment>` where &lt;environment&gt; matches the name of the environment. You can easily navigate to the environment-specific folder with the **Explore interactive scripts** command. When you start the interactive window for that environment, it loads and runs whatever `.py` files are found here in alphabetical order.
5555

5656
1. The **Scripts** control in **Tools > Options > Python Tools > Interactive Windows** tab (see [Interactive windows options](python-support-options-and-settings-in-visual-studio.md#interactive-windows-options)) is intended to specify an additional folder for startup scripts that are loaded and run in all environments. However, this feature doesn't work at present.
5757

docs/python/tutorial-working-with-python-in-visual-studio-step-03-interactive-repl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The Visual Studio *interactive window* for Python provides a rich read-evaluate-
2727

2828
1. Open the interactive window by right-clicking the project's Python environment in Solution Explorer (such as "Python 3.6 (32-bit)" shown in an earlier graphic) and selecting **Open Interactive Window**. You can alternately select **View > Other Windows > Python Interactive Windows** from the main Visual Studio menu.
2929

30-
1. The interactive window opens below the editor with the usual `>>>` Python REPL prompt. Oftentimes you want to make the interactive window larger, which you can do by dragging the separator between the two windows:
30+
1. The interactive window opens below the editor with the standard `>>>` Python REPL prompt. The **Environment** drop-down list allows you to select a specific interpreter to work with. Oftentimes you also want to make the interactive window larger, which you can do by dragging the separator between the two windows:
3131

3232
![Python interactive window and dragging to resize](media/vs-getting-started-python-11-interactive1b.png)
3333

0 commit comments

Comments
 (0)