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
After #44557, commenting a multiline declaration (like an array, dictionary, string, maybe others) with mixed tabs and spaces with the "Toggle Comment" shortcut causes the error Mixed use of tabs and spaces for indentation
Steps to reproduce
Have a multiline declaration with mixed tabs and spaces, highlight it, and press Ctrl+K (the toggle comment shortcut)
vartest:= [
2
]
#var test := [#2#]
vartest=""" a"""
#var test = """#a#"""
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
Hmm, while the error itself is the same, that issue would only be "fixed" by allowing the mixed indentation before comments. My issue could be alternatively fixed by changing the Ctrl+K behaviour again.
For example, the shortcut could put the # after the tabs but before the space:
#var test := [
# 2
#]
(that causes no errors)
Of course, technically the old behaviour of Ctrl+K could be reverted to fix this issue as well, but I think the above compromise would work better.
#var test := [
# 2
#]
My issue is relevant when trying to comment out huge swathes of code automatically - I don't actually care if the # is before or after or in the middle of the tabs and spaces, I just want it to not cause errors by default.
Godot version
v4.2.dev2.official [da81ca6]
System information
N/A
Issue description
After #44557, commenting a multiline declaration (like an array, dictionary, string, maybe others) with mixed tabs and spaces with the "Toggle Comment" shortcut causes the error
Mixed use of tabs and spaces for indentation
Steps to reproduce
Have a multiline declaration with mixed tabs and spaces, highlight it, and press Ctrl+K (the toggle comment shortcut)
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: