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

How to format only modified parts when saving #46

Open
ITsYYT opened this issue Mar 19, 2024 · 0 comments
Open

How to format only modified parts when saving #46

ITsYYT opened this issue Mar 19, 2024 · 0 comments

Comments

@ITsYYT
Copy link

ITsYYT commented Mar 19, 2024

I set "editor.formatOnSaveMode": "modificationsIfAvailable" in vscode so that automatic formatting will only format the parts I modified when saving. This setting works well when I edit Cpp files, but this is not suitable for cmake-language-support, it does not seem to work. When saving the CMakeLists.txt file, it will directly format all the contents in the file, including parts of the file that were not written by me.

formatOnSaveSettings

Please tell me how to make cmake-language-support also support formatting only the modified part when saving, or directly disable formatting. I did not find the relevant option in the settings.

cmakeLanguageSupportSettings

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

No branches or pull requests

1 participant