godotengine / godotengine/godot-vscode-plugin

Add a way to disable formatting on a piece of code

Open
#801 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2.1k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

### 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](https://github.com/user-attachments/assets/66f98205-e4f5-46b0-923c-76d4a4583949)

![Image](https://github.com/user-attachments/assets/d24324ad-4907-40b3-bd85-3314fb186fa2)

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](https://github.com/user-attachments/assets/bd5f5630-a9b1-472b-af07-f72b47e0c792)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.