본문 바로가기

# VSCode

[VS Code] C++ 여는 중괄호 같은 줄 설정

728x90
반응형

https://stackoverflow.com/questions/46111834/format-curly-braces-on-same-line-in-c-vscode

 

Format Curly Braces on Same Line in C++ VSCode

I'm using the C++ Extension for VSCode (Visual Studio Code). Currently, I have the setting "C_Cpp.clang_format_formatOnSave" set to true. This format's my code when I save my C++ file. But the fo...

stackoverflow.com

 

해당 글에서 참고함

 

1. [파일] - [기본 설정] - [설정]

 

2. C_Cpp.clang_format_fallbackStyle 검색

 

3. [Visual Studio] 라고 써있는 공간을 [ { BasedOnStyle: Google, IndentWidth: 4 } ]로 변경

728x90
반응형