visual-studio 在visual studio中如何使用键盘在文本编辑器中选择单词

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3433730/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:19:35  来源:igfitidea点击:

In visual studio how to select word in text editor using keyboard

visual-studiovisual-studio-2010keyboard-shortcuts

提问by adopilot

In earlier version of Microsoft Visual Studio products if user in text editor hit CTRL+W editor will do select the word where is pointer. Does that keyboard shortcut exists still in Visual Studio 2010?

在早期版本的 Microsoft Visual Studio 产品中,如果用户在文本编辑器中按 CTRL+W 编辑器将选择指针所在的单词。该键盘快捷键是否仍然存在于 Visual Studio 2010 中?

回答by Richard

In Tools | Options | Environment | Keyboard enter "Word" into "Show commands containing" and see all commands associated with words.

在工具 | 选项 | 环境 | 键盘在“显示命令包含”中输入“Word”并查看与单词相关的所有命令。

Here the command Edit.SelectCurrentWordis assigned to Ctrl+ W, but your setup might be different.

这里命令Edit.SelectCurrentWord被分配给Ctrl+ W,但您的设置可能不同。

回答by wxt

When using Resharper 'Shift + Ctrl + W' shortcut may be overriden and not working. Create new shortcut for Edit.SelectCurrentWord as 'Ctrl + W, Ctrl + W'. It works fine so you may use this and resharper shortcuts.

使用 Resharper 时,'Shift + Ctrl + W' 快捷方式可能会被覆盖并且不起作用。为 Edit.SelectCurrentWord 创建新的快捷方式为“Ctrl + W, Ctrl + W”。它工作正常,因此您可以使用它并重新锐化快捷方式。