I told GameDev Assistant to use tabs/spaces for the coding, but it didn't do what I asked. Why?

I told GameDev Assistant to use tabs/spaces for the coding, but it didn't do what I asked. Why?

Whether due to personal preferences or style requirements for the project, sometimes you'll need to have scripts that either specifically use tabs or spaces for indentation. Unfortunately, even if you provide the AI with specific instructions for this, it cannot always follow these requirements.

This is the result of a significant limitation of LLMs in general. Even when requested to do so, sometimes LLMs won't give a response observing these requirements simply due to how the responses are processed and rendered. As GameDev Assistant is reliant on LLMs, there isn't anything we can do about this specific issue either to ensure things are enforced 100% of the time.

This said, Godot itself actually offers a quick method to ensure enforcement. First, you must declare your indentation preference to Godot. This can be done by doing the following:

1. Open up the Editor Settings from the Editor menu item.



2. From the Editor Settings, locate the Text Editor -> Behavior settings.

3. On this window, locate the Indent section and choose which indentation type you like.



Once done, anytime you paste in code snippets with the wrong indentation and save your scripts (Ctrl + S), Godot will automatically convert the indentation to your specific settings.
    • Related Articles

    • Do I need to know Godot to use GameDev Assistant?

      While technically anyone can use GameDev Assistant, we do recommend users have at least some experience with Godot before using the tool. As GameDev Assistant was designed as a coding co-pilot (and not an autopilot), knowing Godot can help greatly in ...
    • Prompting Tips for GameDev Assistant

      The quality of AI responses often comes down to your specific prompt - and GameDev Assistant is no different in that regard. In this article, we'll provide some tips for writing good prompts so you can get the most out of this Godot co-pilot! Want ...
    • What is GameDev Assistant?

      GameDev Assistant, created by Zenva, is a Godot AI coding assistant designed to speed up your workflows. Built as a Godot plugin, this tool works directly within the engine itself - reducing context switching to other windows and AI tools. The tool ...
    • How do I install GameDev Assistant?

      The process for installing GameDev Assistant is fairly simple and straightforward. Below you can find instructions both in a video format and in a written format. Please note that in order to use GameDev Assistant, you must have Godot installed ...
    • How do I change my email address in GameDev Assistant?

      You can change the email address you use for GameDev Assistant at any time by following the steps below. Please note that conversations CANNOT be migrated between accounts, however. 1) Log in to you GameDev Assistant account at ...