Author |
Topic |
|
Albinator
Starting Member
1 Posts |
Posted - Nov 23 2022 : 06:24:12 AM
|
With VS 2022 (17.4.1) and VAX 2022.4
Using the default create implementation snippet (I didn't changed it), with ClangFormat enabled, the braces are generated on the same line, like this :
Class::Function() {} instead of :
Class::Function()
{
}
This doesn't occurs when disabling ClangFormat (Tools>Options>C/C++>Code Style>Formating>Enable ClangFormat support). Also, ClangFormat is setup to be triggered only at save ( and I can't ctrl+z the formating (it undo the whole implemetation creation), making me think of a visual assist bug (but maybe I missed an option ?)
(Just in case, here are my VS formation options)
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Nov 23 2022 : 11:14:14 AM
|
So far I cannot reproduce this here. Do you have a ".clang-format" file somewhere in your solution directory tree? I am assuming you do, if you are using clang format. If so, can you please post or send me the content of this file, so I can try using the same clang format settings here.
Also can you please export your VA and IDE settings and send them to me:
VA Options -> Performance -> Export Settings IDE tools menu -> Import and Export Settings -> Export selected environment settings
I can then import them here and see if I can reproduce the problem.
Please send me the files via email:
[email protected]
including this thread ID or URL in the description, so we can match it up. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|
|
|