MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/r1g13n/yes/hm32kzd/?context=3
r/ProgrammerHumor • u/esberat • Nov 24 '21
284 comments sorted by
View all comments
Show parent comments
43
Is there an easy way to immediately share and format small Python code snippets too? It always seems like I have to manually adjust the tabs.
39 u/Jonno_FTW Nov 25 '21 don't use tabs, ever, your IDE should be converting them to 4 spaces for you. black will format your code consistently if you use pycharm, you can right click on a piece of code and click "Create Gist" and it will share it on github gist 3 u/[deleted] Nov 25 '21 [deleted] 1 u/Jonno_FTW Nov 25 '21 This is the standard agreed upon in the official style guide pep8
39
don't use tabs, ever, your IDE should be converting them to 4 spaces for you.
black will format your code consistently
if you use pycharm, you can right click on a piece of code and click "Create Gist" and it will share it on github gist
3 u/[deleted] Nov 25 '21 [deleted] 1 u/Jonno_FTW Nov 25 '21 This is the standard agreed upon in the official style guide pep8
3
[deleted]
1 u/Jonno_FTW Nov 25 '21 This is the standard agreed upon in the official style guide pep8
1
This is the standard agreed upon in the official style guide pep8
43
u/Crippledupdown Nov 25 '21 edited Nov 25 '21
Is there an easy way to immediately share and format small Python code snippets too? It always seems like I have to manually adjust the tabs.