You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've work with python files idented with TAB
and I've noticed when I move ident back or forth with (command + [ ) or (command + ] ) it introduces spaces.
As it is difficult to differentiate in the code sometimes I use VSCode to change it back to tabs too.
other strange behavior is:
if there are 3 tabs, and my cursor is between the second and the third, if I use the shortcut to "select everything from the line start to the cursor" (command + shift + arrow left) it actually selects to the right.
I've work with python files idented with TAB and I've noticed when I move ident back or forth with (command + [ ) or (command + ] ) it introduces spaces. As it is difficult to differentiate in the code sometimes I use VSCode to change it back to tabs too.
It might be worth adding a setting in Preferences to choose tabs vs spaces (and the indent-size too). Note that the Show Invisibles option in the View menu will let you spot where spaces vs tabs are being used in a given file if you need to fix things by hand.
other strange behavior is: if there are 3 tabs, and my cursor is between the second and the third, if I use the shortcut to "select everything from the line start to the cursor" (command + shift + arrow left) it actually selects to the right.
Admittedly it's weird behavior, but I think what you're seeing on that first command-left is that it's hopping to the beginning of the text rather than the beginning of the line itself. If you tap command-left repeatedly you'll see it hops between the indentation point and the leftmost column.
Activity
samizdatco commentedon Jul 15, 2022
It might be worth adding a setting in Preferences to choose tabs vs spaces (and the indent-size too). Note that the Show Invisibles option in the View menu will let you spot where spaces vs tabs are being used in a given file if you need to fix things by hand.
Admittedly it's weird behavior, but I think what you're seeing on that first command-left is that it's hopping to the beginning of the text rather than the beginning of the line itself. If you tap command-left repeatedly you'll see it hops between the indentation point and the leftmost column.