I unabashedly use ChatGPT to help me code. I try to write as much as I can on my own, and then when I get stuck, or need advice, I ask ChatGPT, because I love the fact that I get zero judgement for my questions, no matter how dumb. (I do double-check some answers via searches, because I know it hallucinates.)
Occasionally it forgets that I'm using GDScript and uses four spaces instead of tab characters. It's tedious to hand-change them, and annoying to fill up the chat with constant "please re-send that code with tab characters instead of spaces" so I asked it to build a webpage where I can paste in the code, press a button, and have both each set of 4 spaces converted to one tab character, and also normalize line endings, because ...
I unabashedly use ChatGPT to help me code. I try to write as much as I can on my own, and then when I get stuck, or need advice, I ask ChatGPT, because I love the fact that I get zero judgement for my questions, no matter how dumb. (I do double-check some answers via searches, because I know it hallucinates.)
Occasionally it forgets that I'm using GDScript and uses four spaces instead of tab characters. It's tedious to hand-change them, and annoying to fill up the chat with constant "please re-send that code with tab characters instead of spaces" so I asked it to build a webpage where I can paste in the code, press a button, and have both each set of 4 spaces converted to one tab character, and also normalize line endings, because ChatGPT tends to use Unix newline characters, and I use Windows, so GitHub yells at me for mixing line ending types if I copy an entire function or something like that.
You can download the tool and open it with any browser:
https://github.com/teastainedhouse/spaces-to-tabs-gdscript-from-chatgpt
Could you have just as easily asked for the exact same thing? Yup! But I'm aware that using this resource is not free, even if it doesn't cost you money directly. Environment, electricity, etc, etc. I won't go into it, I'm just trying to explain why I bothered to take up your time scrolling passed this post. If this post saves a handful of other people from needing to run the same prompts again, then I saved a little bit of something.
Happy game dev everyone!