Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to disable formatting on a piece of code #801

Open
Ataraxia-Mechanica opened this issue Feb 20, 2025 · 2 comments
Open

Add a way to disable formatting on a piece of code #801

Ataraxia-Mechanica opened this issue Feb 20, 2025 · 2 comments

Comments

@Ataraxia-Mechanica
Copy link

Godot version

4.3.stable

VS Code version

1.95.3

Godot Tools VS Code extension version

2.3.0

System information

Windows 10

Problem statement

Image

Image

Sometimes a part of the code is more readable if various elements are aligned manually instead of using auto formatting. Clang-format has this feature where auto formatter ignores the lines between // clang-format off and // clang-format on .

Proposed solution

Image

@Ataraxia-Mechanica
Copy link
Author

Hope I did not make a duplicate feature request or something that already exists as I don't program in gdscript a lot and is not very familiar with this plugin.

@Calinou
Copy link
Member

Calinou commented Feb 20, 2025

I suggest picking a syntax that an official formatter would eventually use, so we don't have to change it later.

@adamscott Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants