Fix indentation in docs/editor_integration.md (#2056)

Numbered list entries' bodies need to be indented or else the list won't
render correctly.
This commit is contained in:
Richard Si 2021-03-20 15:15:55 -04:00 committed by GitHub
parent d62d677ca2
commit 0be7f96d9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,38 +12,38 @@ Options include the following:
1. Install `black`. 1. Install `black`.
```console ```console
$ pip install black $ pip install black
``` ```
2. Locate your `black` installation folder. 2. Locate your `black` installation folder.
On macOS / Linux / BSD: On macOS / Linux / BSD:
```console ```console
$ which black $ which black
/usr/local/bin/black # possible location /usr/local/bin/black # possible location
``` ```
On Windows: On Windows:
```console ```console
$ where black $ where black
%LocalAppData%\Programs\Python\Python36-32\Scripts\black.exe # possible location %LocalAppData%\Programs\Python\Python36-32\Scripts\black.exe # possible location
``` ```
Note that if you are using a virtual environment detected by PyCharm, this is an Note that if you are using a virtual environment detected by PyCharm, this is an
unneeded step. In this case the path to `black` is `$PyInterpreterDirectory$/black`. unneeded step. In this case the path to `black` is `$PyInterpreterDirectory$/black`.
3. Open External tools in PyCharm/IntelliJ IDEA 3. Open External tools in PyCharm/IntelliJ IDEA
On macOS: On macOS:
`PyCharm -> Preferences -> Tools -> External Tools` `PyCharm -> Preferences -> Tools -> External Tools`
On Windows / Linux / BSD: On Windows / Linux / BSD:
`File -> Settings -> Tools -> External Tools` `File -> Settings -> Tools -> External Tools`
4. Click the + icon to add a new external tool with the following values: 4. Click the + icon to add a new external tool with the following values:
@ -83,28 +83,28 @@ Wing supports black via the OS Commands tool, as explained in the Wing documenta
1. Install `black`. 1. Install `black`.
```console ```console
$ pip install black $ pip install black
``` ```
2. Make sure it runs from the command line, e.g. 2. Make sure it runs from the command line, e.g.
```console ```console
$ black --help $ black --help
``` ```
3. In Wing IDE, activate the **OS Commands** panel and define the command **black** to 3. In Wing IDE, activate the **OS Commands** panel and define the command **black** to
execute black on the currently selected file: execute black on the currently selected file:
- Use the Tools -> OS Commands menu selection - Use the Tools -> OS Commands menu selection
- click on **+** in **OS Commands** -> New: Command line.. - click on **+** in **OS Commands** -> New: Command line..
- Title: black - Title: black
- Command Line: black %s - Command Line: black %s
- I/O Encoding: Use Default - I/O Encoding: Use Default
- Key Binding: F1 - Key Binding: F1
- [x] Raise OS Commands when executed - [x] Raise OS Commands when executed
- [x] Auto-save files before execution - [x] Auto-save files before execution
- [x] Line mode - [x] Line mode
4. Select a file in the editor and press **F1** , or whatever key binding you selected 4. Select a file in the editor and press **F1** , or whatever key binding you selected
in step 3, to reformat the file. in step 3, to reformat the file.