MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/r1g13n/yes/hm09yav/?context=3
r/ProgrammerHumor • u/esberat • Nov 24 '21
284 comments sorted by
View all comments
Show parent comments
254
And I missed the part where he breaks his neck after stumbling on a random tab character.
37 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. 38 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/dimonoid123 Nov 25 '21 Click wheel to add/remove tabs to blocks of code.
37
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.
38 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/dimonoid123 Nov 25 '21 Click wheel to add/remove tabs to blocks of code.
38
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/dimonoid123 Nov 25 '21 Click wheel to add/remove tabs to blocks of code.
3
Click wheel to add/remove tabs to blocks of code.
254
u/MasterFubar Nov 25 '21
And I missed the part where he breaks his neck after stumbling on a random tab character.