Visual Studio中的缩进快捷方式 [英] Indentation shortcuts in Visual Studio

查看:175
本文介绍了Visual Studio中的缩进快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio 2010和C#的新手。如何使用快捷方式将所选文字缩进左/右?

I'm new to Visual Studio 2010 and C#. How can I indent the selected text to left/right by using shortcuts?

在Delphi IDE中,等效的是 Ctrl + Shift + Ctrl + Shift + U

In the Delphi IDE the equivalents are Ctrl+Shift+I and Ctrl+Shift+U

推荐答案

Tab Shift + Tab 将会这样做。

Tab and Shift+Tab will do that.

另一个很棒的技巧是在你选择文本时按住 ALT ,它可以让你做一个平方的选择。从VS2010开始,您可以开始输入,它将用您键入的内容替换您的Square选择的内容。一次更换一堆线条绝对是棒极了。

Another cool trick is holding down ALT when you select text, it will allow you to make a square selection. Starting with VS2010, you can start typing and it will replace the contents of your square selection with what you type. Absolutely awesome for changing a bunch of lines at once.

这篇关于Visual Studio中的缩进快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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