问题描述
当在Visual Studio中编程C ++时,它坚持给我这些神奇的缩写访问修饰符 - 我的哀悼,如果有人实际喜欢他们这样的方式;)(一个笑话伙伴!)
When programming C++ in visual studio, it insists on giving me these god-awful indendations 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();
}
有任何方法来实现这个使用任何东西荧光笔)或者可能是香草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.
这篇关于C ++访问修饰符自动缩进在Visual Studio 2010慢慢地驱动我疯了 - 可以改变吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!