Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

Snippet formating in VSCcode (c++)

$
0
0

I am using Visual studio code on mac. I didn't find solution nowhere.

When i use snippets for C/C++ from Microsoft. I get results like this:

for (size_t i = 0; i < count; i++) 
{

} 

but i want this snippets to look like this.

for (size_t i = 0; i < count; i++) {

} 

if i reformat code i get what i want. But its time consuming if i need to format or edit code on every snippet i use.

My settings.json:

{
    "workbench.colorTheme": "Material Theme High Contrast",
    "workbench.iconTheme": "material-icon-theme",
    "files.autoSave": "afterDelay",
    "liveServer.settings.donotShowInfoMsg": true,
    "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0}",
    "C_Cpp.clang_format_style": "{ BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 0}"
}

Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>