Visual Studio 2008中块选择的命令是什么

发布于 2024-08-04 02:55:15 字数 255 浏览 2 评论 0原文

在 Visual Studio 中,使用鼠标选择文本时,可以通过按住 Alt 来选择文本块。这对于选择一列数据或文本而不是整行非常有用。

在 Visual Studio 2003-2005 中,可以通过按住 Alt + Shift 和箭头键来执行此操作,但键盘选项在 VS2008 中不再起作用。

谁能告诉我分配给键盘快捷键的编辑器命令? 这个键盘快捷键是否只是在 VS 2008 中移至其他位置?

In visual studio you can select a block of text by holding down Alt when when selecting text with the mouse. This is very useful for selecting a column of data or text as opposed to the entire line.

In Visual Studio 2003-2005 this operation could be performed by holding Alt + Shift in conjunction with the arrow keys but the keyboard option no longer works in VS2008.

Can anyone tell me the editor command to assign to a keyboard shortcut?
Is this keyboard shortcut just moved to something else in VS 2008?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

原来是傀儡 2024-08-11 02:55:15

Alt + Shift + arrow 组合键在 VS2008 中仍然有效(至少在我的默认键映射中有效)。您的键映射可能未正确设置为您期望的工作方式。

要手动设置键映射,您需要查看 Edit.LineUpExtendColumnEdit.LineDownExtendColumnEdit.CharLeftExtendColumnEdit。 CharRightExtendColumn 在键盘设置中并重新分配它们。

The Alt + Shift + arrow key combination still works in VS2008 (at least it does in my default key mappings). It is possible that your key mappings are not set correctly to what you expect to work.

To manually set the key mappings, you need to look at Edit.LineUpExtendColumn, Edit.LineDownExtendColumn, Edit.CharLeftExtendColumn and Edit.CharRightExtendColumn in the keyboard settings and reassign them.

三月梨花 2024-08-11 02:55:15

在我提交此内容后,我立即查看键盘快捷键并找到了阿德里安提到的命令。通过查看这些映射的方式并进行更多尝试,我弄清楚了它是如何在 Team Suite 的默认配置文件中设置的。

要启动块,请按 Alt + Shift + HomeAlt + Shift + 结束。这将突出显示到行尾或行首,具体取决于您按下的内容。

此后 Shift + 箭头Ctrl + Shift + 箭头,可用于根据需要扩大区域。

Right after I submitted this I was looking through the keyboard shortcuts and found the commands Adrian mentioned. By looking at how these are mapped and playing around a bit more I figured out how it is setup in the default profile for Team Suite.

To start a block select you press Alt + Shift + Home or Alt + Shift + End. This highlights to the end of the line or the start of the line depending on what you pressed.

Thereafter Shift + arrow and Ctrl + Shift + arrow, can be used to expand the region as desired.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文