admin管理员组文章数量:1026989
How can I configure VSCode, C/C++ Formatting. I have code:
int main()
{
std::cout << "Hello, Stack" << std::endl;
if(false)
return 0;
for(;;)
break;
while(0)
break;
do
{} while(0);
return 0;
}
After pushing hot key Alt+shift+f (editor.action.formatFocument):
int main()
{
std::cout << "Hello, Stack" << std::endl;
if (false)
return 0;
for (;;)
break;
while (0)
break;
do
{
} while (0);
return 0;
}
Is parameter "C_Cpp > Vc Format > Space: After Keywords In Control Flow Statements" must be off or what?
Now this parameter is off. But if I on it nothing happened.
How can I configure VSCode, C/C++ Formatting. I have code:
int main()
{
std::cout << "Hello, Stack" << std::endl;
if(false)
return 0;
for(;;)
break;
while(0)
break;
do
{} while(0);
return 0;
}
After pushing hot key Alt+shift+f (editor.action.formatFocument):
int main()
{
std::cout << "Hello, Stack" << std::endl;
if (false)
return 0;
for (;;)
break;
while (0)
break;
do
{
} while (0);
return 0;
}
Is parameter "C_Cpp > Vc Format > Space: After Keywords In Control Flow Statements" must be off or what?
Now this parameter is off. But if I on it nothing happened.
本文标签: cvscode CCpp space after ifforwhileetcStack Overflow
版权声明:本文标题:c++ - vscode. C_Cpp space after if, for, while, etc - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1736032753a1381379.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论