how to temporarily apply a code style when open a file?
已回答
For example, when I open a configuration file `*.config`, I want to manually choose which code format I use because it usually changes between json/yaml. So linking file type to the file extension is not very convenient.
Is there a way to apply temporarily a specific coding format in the setting?
请先登录再写评论。
Code style is configured per language. The language defined one or more file extensions where it is applicable. So code style is defined for certain file extension and it is not possible to use several code styles for one file type.