在Visual Studio 2013 IDE中单独自动c ++源代码格式 [英] individual automatically c++ source code formatting in the Visual Studio 2013 IDE

查看:125
本文介绍了在Visual Studio 2013 IDE中单独自动c ++源代码格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello,



如何格式化或与Visual Studio 2013对齐几个c ++源代码所有项目?



是否有机会获得个别模板,我可以跨项目使用?



实际源代码的一个小例子:



Hello,

how can I format or align with Visual Studio 2013 several c++ source codes in all projects?

Is there a opportunity for an individual template which I can use across projects?

An small example with the actual source code:

for(int i= 0; i<(n+  m) ;  i++){

}





$
个别所需源代码如下所示的一个小例子:






An small example how the individual desired source code looks like:

 for ( int i = 0; i < (n + m); i++ )
  {
  }

我使用CTRL + K格式化 - > CTRL + D表示实际文档和CTRL + K - > CTRL + F用于实际选择。但这不符合我的
个别格式要求。如何为我自己的要求配置C ++源代码的自动格式化?





非常感谢您的帮助

I use the formating with CTRL+K -> CTRL+D for the actual document and CTRL+K -> CTRL+F for the actual selection. But this doesn't satisfy my individual formatting requirements. How can I configure the automatic formatting of C++ source code for my own requierements?


Thank you very much for your help

推荐答案

工具,选项,文本编辑器,C#,格式,间距然后设置间距为你的味道。

Tools, Options, Text Editor, C#, Formatting, Spacing and then set the spacing to your taste.


这篇关于在Visual Studio 2013 IDE中单独自动c ++源代码格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆