Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VS Code Python Formatter
#3
I know, and get that. However, if something is slightly indented and gives me an error; I was hoping one of these extensions would fix the indentation error.
How many spaces do you use?



(Sep-06-2021, 02:56 PM)DeaD_EyE Wrote: Just don't use tabs: https://www.python.org/dev/peps/pep-0008...-or-spaces


If you use tabs, you've to use them everywhere. Mixing tabs and whitespace ends in a IndentationError which means also, that these tools could not parse the code.

It's not the fault of black or autopep8.
Reply


Messages In This Thread
VS Code Python Formatter - by muzikman - Sep-06-2021, 02:13 PM
RE: VS Code Python Formatter - by DeaD_EyE - Sep-06-2021, 02:56 PM
RE: VS Code Python Formatter - by muzikman - Sep-06-2021, 02:59 PM
RE: VS Code Python Formatter - by snippsat - Sep-06-2021, 04:22 PM
RE: VS Code Python Formatter - by muzikman - Sep-06-2021, 05:11 PM
RE: VS Code Python Formatter - by snippsat - Sep-06-2021, 05:28 PM
RE: VS Code Python Formatter - by DeaD_EyE - Sep-16-2021, 04:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to use nb-black python cde formatter ErnestTBass 3 6,857 Jun-04-2020, 03:51 PM
Last Post: ErnestTBass

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020