简体   繁体   English

如何在Visual Studio 2008中使VB.NET和C#的语法突出显示和键盘行为相同?

[英]How to make make syntax highlighting and keyboard behavior identical for VB.NET and C# in Visual Studio 2008?

C# C#

  • Types have their own color (cyan by default). 类型具有自己的颜色(默认为青色)。
  • Enter completes the auto-complete suggestion. 输入完成自动完成建议。

Visual Basic Visual Basic

  • Types use Identifier color (black by default). 类型使用标识符颜色(默认为黑色)。
  • Enter completes the auto-complete suggestion and adds a "()" and a newline. Enter完成自动完成建议,并添加“()”和换行符。

These and other seemingly minor differences are so enraging I can't get any work done. 这些和其他看似细微的差异是如此令人发指,我无法完成任何工作。 How do I make Visual Studio behave consistently? 如何使Visual Studio行为一致? Failing that, any other solutions/suggestions? 否则,还有其他解决方案/建议吗?

Edit: I don't care which way, I just want it to be consistent. 编辑:我不在乎哪种方式,我只是希望它是一致的。

The VB.NET and C# IDEs merely look the same. VB.NET和C#IDE看起来完全一样。 They are actually very different chunks of code that don't have much in common beyond the text editor engine. 实际上,它们是非常不同的代码块,除了文本编辑器引擎外没有太多共同点。 They did a pretty good job making them look similar, it certainly wasn't that way in earlier releases of VS. 它们做得非常好,使它们看起来很相似,在VS的早期版本中肯定不是那样。 But there are subtle differences here and there, like the ones you are fretting over. 但是,到处都是细微的差异,就像您正在为之烦恼的一样。

You'll need to get over this. 您需要克服这一点。 Pick, say, global warming or the economy to direct your rage. 选择全球变暖或经济来引导您的愤怒。 Or a hapless contributor to SO :) 或不幸的SO贡献者:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM