PyCharm Settings » History » Version 17
Alexander Watzinger, 2022-11-21 15:55
1 | 4 | Alexander Watzinger | {{toc}} |
---|---|---|---|
2 | 1 | Alexander Watzinger | |
3 | 11 | Alexander Watzinger | h1. Suggested PyCharm settings |
4 | 1 | Alexander Watzinger | |
5 | 11 | Alexander Watzinger | Under menu item *File > Settings* when using "PyCharm":https://www.jetbrains.com/pycharm/ IDE |
6 | 1 | Alexander Watzinger | |
7 | 11 | Alexander Watzinger | h2. Editor |
8 | 1 | Alexander Watzinger | |
9 | 11 | Alexander Watzinger | * General |
10 | ** Remove trailing spaces on: *All lines* |
||
11 | ** Set *Ensure every saved file ends with a line break* |
||
12 | * Code Style |
||
13 | 16 | Alexander Watzinger | ** Set *hardwrap* to 79 columns |
14 | 11 | Alexander Watzinger | * Code Style > Python > Wrapping and Braces |
15 | ** Set *Ensure right margin is not exceeded* |
||
16 | 9 | Alexander Watzinger | |
17 | 11 | Alexander Watzinger | h2. Code Style > Python > Tab Imports |
18 | 4 | Alexander Watzinger | |
19 | * Sort import statements |
||
20 | ** Sort imported names in "from" imports |
||
21 | ** Sort plain and "from" imports separately within a group |
||
22 | |||
23 | ** Join imports with the same source |
||
24 | 1 | Alexander Watzinger | |
25 | 13 | Alexander Watzinger | h2. Code Style > HTML -> Tabs and Indents |
26 | |||
27 | * Tab size: 2 |
||
28 | * Indent: 2 |
||
29 | * Continuation indent: 2 |
||
30 | |||
31 | 1 | Alexander Watzinger | h2. Nosetests |
32 | |||
33 | 14 | Alexander Watzinger | * Add a Python Nosetest |
34 | 15 | Alexander Watzinger | * Target: Choose *Script path* and select path to */tests* |
35 | 17 | Alexander Watzinger | * Additional Arguments: *--config=.noserc* |
36 | 3 | Alexander Watzinger | |
37 | h2. Preferences |
||
38 | |||
39 | These are some personal preferences which don't have any effect on submitted code. |
||
40 | |||
41 | h3. Font |
||
42 | |||
43 | * Font: DejaVu Sans Mono |
||
44 | * Size: 13 |
||
45 | * Line spacing: 1.2 |