When Prettier config is present, format code using that extension but display code using personal Prettier configuration in VSCode settings #3496
trymeouteh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When Prettier config is present, format code using that extension but display code using personal Prettier configuration in VSCode settings.
This way when a project has a specific configuration, the code is formatted to that standard but the editor display the code in the format that the user has configured in their prettier VSCode settings. This will allow programmers to always have code formatted in their editor window to their linking for the best readability possible and always having the source code in the files formatted with the configuration standard set in the prettier config file in the project folder.
A toggle button should be added to the status bar and a hotkey should be added to toggle between displaying the code being formatted the way it is in the file (Using the prettier configuration in the project root directory) and the code being formatted to how the Prettier VSCode configuration is set.
Beta Was this translation helpful? Give feedback.
All reactions