Indentation is messed up when line of code moves to next line

During an if statement when my line of code gets too long it wraps around but doesn’t stay at the correct indentation making the code very messy. Trying to manually indent it doesn’t work as it messes up strings.

1 Like

I believe this is intended behavior, however you can remove the wrapping which kind of fixes this problem via Tools > Settings > Wrapping > none

7 Likes

What @QwertyQwerty88 said was right, although you should also note wrapping does not actually mess up indentation, as it is a visual effect, and python itself does not see the linefeeds.

3 Likes

Yes. It is just a way to view all avaliable code without scrolling left and right.

2 Likes