How Visual Studio Code Formatting Works Out of the Box in OSX

I run vscode on osx and installed the C / C ++ plugin that brought the package with me ClangFormat:

Installing the package "C / C ++ Language Components (OS X)"
Installing the package "ClangFormat (OS X)"
Installing the package "Monoblock assemblies"
Installing the package "Mono Runtime (OS X)"
Installing the package "LLDB 3.8.0 (OS X) ) "

I can format the code in C ++ and even successfully change the style clang-format:

"C_Cpp.clang_format_style": "google" `

The fact is that I do not have clang-format installed on my system, and the path in the vscode settings is also not installed:

"C_Cpp.clang_format_path": null

How is formatting done here? What is the package ClangFormatthat vscode installed? Where and where? This is not a plugin.
Does any package manager other than use homebrewto install the distribution clang-formatin a custom location that is not in the path?

+4
source share
1 answer

Linux Mint C/++ Microsoft, , . :

~/.vscode/extensions/ms-vscode.cpptools-0.12.3/LLVM/bin/

Windows, :

%USERPROFILE%\.vscode\extensions\ms-vscode.cpptools-0.12.3\LLVM\bin\

OSX :

~/.vscode/extensions/ms-vscode.cpptools-0.12.3/LLVM/bin/

, Arch.

+1

Source: https://habr.com/ru/post/1684164/


All Articles