1. <legend id='331sY'><style id='331sY'><dir id='331sY'><q id='331sY'></q></dir></style></legend>
        <i id='331sY'><tr id='331sY'><dt id='331sY'><q id='331sY'><span id='331sY'><b id='331sY'><form id='331sY'><ins id='331sY'></ins><ul id='331sY'></ul><sub id='331sY'></sub></form><legend id='331sY'></legend><bdo id='331sY'><pre id='331sY'><center id='331sY'></center></pre></bdo></b><th id='331sY'></th></span></q></dt></tr></i><div id='331sY'><tfoot id='331sY'></tfoot><dl id='331sY'><fieldset id='331sY'></fieldset></dl></div>

        • <bdo id='331sY'></bdo><ul id='331sY'></ul>

        <small id='331sY'></small><noframes id='331sY'>

        <tfoot id='331sY'></tfoot>

        Visual Studio 2010 中的 C++ 访问修饰符自动缩进慢慢

        时间:2023-05-23

        <small id='vglo2'></small><noframes id='vglo2'>

        • <legend id='vglo2'><style id='vglo2'><dir id='vglo2'><q id='vglo2'></q></dir></style></legend>
          <i id='vglo2'><tr id='vglo2'><dt id='vglo2'><q id='vglo2'><span id='vglo2'><b id='vglo2'><form id='vglo2'><ins id='vglo2'></ins><ul id='vglo2'></ul><sub id='vglo2'></sub></form><legend id='vglo2'></legend><bdo id='vglo2'><pre id='vglo2'><center id='vglo2'></center></pre></bdo></b><th id='vglo2'></th></span></q></dt></tr></i><div id='vglo2'><tfoot id='vglo2'></tfoot><dl id='vglo2'><fieldset id='vglo2'></fieldset></dl></div>
            • <tfoot id='vglo2'></tfoot>

                  <tbody id='vglo2'></tbody>

                  <bdo id='vglo2'></bdo><ul id='vglo2'></ul>
                  本文介绍了Visual Studio 2010 中的 C++ 访问修饰符自动缩进慢慢让我发疯 - 可以更改吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  在 Visual Studio 中编程 C++ 时,它坚持在访问修饰符上给我这些可怕的缩进 - 如果有人真的喜欢这种方式,我表示哀悼;)(开玩笑的伙计们!)

                  When programming C++ in Visual Studio, it insists on giving me these awful indentations on access modifiers - my condolences if anyone actually likes them this way ;) (a joke folks!)

                  public class MyClass
                  {
                  public:
                     MyClass();
                     ~MyClass();
                     int wowAnInt();
                  }
                  

                  不用说,我想要这个:

                  public class MyClass
                  {
                      public:
                         MyClass();
                         ~MyClass();
                         int wowAnInt();
                  } 
                  


                  有什么方法可以使用任何东西(我有 ReSharper 和 Highlighter)或香草 VS 来实现这一点?


                  Is there any way to achieve this using anything (I've got ReSharper and Highlighter) or perhaps vanilla VS?

                  推荐答案

                  与内置的 Visual Studio 编辑器设置最接近的是将缩进模式从智能"更改为块"(工具 -> 选项-> 文本编辑器 -> C/C++ -> 制表符 -> 缩进).

                  The closest you can get with the built-in Visual Studio editor settings is to change the indenting mode from "Smart" to "Block" (Tools -> Options -> Text Editor -> C/C++ -> Tabs -> Indenting).

                  当你这样做时,你可以随意缩进任何你喜欢的东西,你只是失去了自动缩进".基本上,每当您按 [enter] 时,新行都会缩进与前一行相同数量的制表位/空格,并且不会自动重新格式化行以使它们对齐.

                  When you do this, you can indent anything however you like, you just lose the "automatic indenting." Basically, whenever you press [enter] the new line will be indented the same number of tab stops / spaces as the previous line and it won't automatically reformat lines to get them to line up.

                  这篇关于Visual Studio 2010 中的 C++ 访问修饰符自动缩进慢慢让我发疯 - 可以更改吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:C++ 无法读取文本文件 下一篇:如何在 C++ 中覆盖 cout?

                  相关文章

                  最新文章

                    <legend id='j4xmM'><style id='j4xmM'><dir id='j4xmM'><q id='j4xmM'></q></dir></style></legend>
                    1. <tfoot id='j4xmM'></tfoot>
                      <i id='j4xmM'><tr id='j4xmM'><dt id='j4xmM'><q id='j4xmM'><span id='j4xmM'><b id='j4xmM'><form id='j4xmM'><ins id='j4xmM'></ins><ul id='j4xmM'></ul><sub id='j4xmM'></sub></form><legend id='j4xmM'></legend><bdo id='j4xmM'><pre id='j4xmM'><center id='j4xmM'></center></pre></bdo></b><th id='j4xmM'></th></span></q></dt></tr></i><div id='j4xmM'><tfoot id='j4xmM'></tfoot><dl id='j4xmM'><fieldset id='j4xmM'></fieldset></dl></div>

                      • <bdo id='j4xmM'></bdo><ul id='j4xmM'></ul>

                      <small id='j4xmM'></small><noframes id='j4xmM'>