Skip to content

Add bonus tip to README.md #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,25 @@ This may include:
- Measuring the time

## Other usefull tasks [Bonus Points]

#### Settings.json
Instead of running
```shell
black --line-length 120 ~/git/plr-exercise
```
each time you want to reformat, you can instead open your vscode user settings:

`ctrl+shit+p` -> "Open User Settings (JSON)"

_Note:_ if you want this to apply only to your current project (not all your vscode projects), open workspace settings instead.

and edit it to add python options that format automatically every time you save:
```
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.black-formatter",
},
"black-formatter.args": [
"--line-length=120" // Or anything you prefer.
],
```
Loading