Help Docs sample code should use tabs? #12750
Closed
toddcesere
started this conversation in
Editor
Replies: 1 comment
-
Tabs are used for indentation in class reference examples since 4.5.beta1: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Godot uses tabs by default, and the general practice for GDScript seems to be using tabs. However, when you're looking at Help Docs in the editor area all the sample code uses spaces. I know it's a small thing but copying and pasting code that has spaces when you're using tabs is annoying, and you often end up not noticing that you've just pasted spaces in, and that code often works because it only fails when you mix tabs and spaces in the same block.
Or... wait, I guess that might be a different issue (or a bug)? If I copy code with spaces into the editor and I have the editor set to use tabs, shouldn't it turn the space indentation into tabs?
Not sure if this is two issues, or one, or zero, but it definitely has nothing to do with tabs vs spaces argument. Tabs are fine. I can see them in the Godot editor so it doesn't bother me that I can't see them in the online help docs.
By the way, the code that shows up in the editor with spaces actually has tabs when you look at it in the online help docs. You can't tell that they're tabs because tabs and spaces look the same in the online help docs. I guess maybe that's a third issue, or not an issue because it's ok if tabs look like spaces and you don't know until you highlight them or copy and paste them. It's not a problem.
Beta Was this translation helpful? Give feedback.
All reactions