Closed samishchandra closed 4 years ago
No, this extension is only compatible with Visual Studio Code. Visual Studio for Windows and Visual Studio for Mac are completely different editors under the hood, and they have different extension systems
Thanks for the reply.
Oh okay. Is there an extension that is available to format the vscode currently?
@LaurentTreguier, sorry i mistyped the issue header, I am currently using vscode for mac only ?
Yes, I see; your configuration seems perfectly fine, I don't know what the problem is yet. I will test it on mac and see if it works
I have some questions to try to understand why this happens:
No formatter registered for filetype 'cpp'
?Please find the below screenshots for formatter and vscode settings.
For a fresh install and when i disable cpp. I get No formatter registered for filetype 'objective-cpp'
notification.
Yes. Installed it via Homebrew. brew install uncrustify --HEAD
~ uncrustify --version
Uncrustify-91076aa
Done this multiple times.
Adding following to settings file, made it to work ✅. Thank you.
"editor.defaultFormatter": "LaurentTreguier.uncrustify",
Strange, I think it should not need this. But if it works, then great ! 👍
I freshly downloaded latest Visual Studio from here.
I installed Uncrustify and the extension as per the instructions. I configured it via settings.. I am not able to see any formatters registered for any of the
C
,C++
,ObjC
,ObjC++
files.Here is what I added in the vstudio settings file.
Here is the log I see in the debug console.