本文介绍了按下Ctrl和光标键时使Visual Studio理解CamelCase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以配置Visual Studio 2008以了解CamelCase?具体来说,我希望能够获取ctrl + rightleft光标将我带到一个小节变量或类型名称.

Is there a way that I can configure Visual Studio 2008 to understand CamelCase? Specifically, I'd like to be able to get ctrl + right or left cursor to take me to a subsection of a variable or type name.

即,如果我的光标位于此行的开头:

i.e., if my cursor was at the start of this line:

LongNamedExampleClass longNamed = new LongNamedExampleClass();

,然后我按下ctrl + right,我想跳到类名中的"Named",而不是变量名的开头.如果我再次点击它,我想转到"Example".我希望这是有道理的...

and I hit ctrl + right, I'd like to jump to "Named" in the class name, rather than the start of the variable name. If I hit it again, I'd like to go to "Example". I hope that makes sense...

我在eclipse中使用了很多导航功能,发现很难学到一些根深蒂固的东西.

I used this navigational feature in eclipse quite a lot, and find it difficult to unlearn something so ingrained.

推荐答案

感谢那些建议Resharper的人.给了我另一个更爱它的理由.只是要具体说明它的生存位置-JetBrains称它为 CamelHumps (可爱),您可以使用菜单将其打开:

Thanks for those who suggested Resharper. Gives me another reason to love it even more. Just to be specific about where this lives - JetBrains call it CamelHumps (cute) and you can switch it on using the menu:

...在较旧的Resharper版本中,是;

... in older versions of Resharper, it is;

这篇关于按下Ctrl和光标键时使Visual Studio理解CamelCase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 03:17