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

喜你入骨 提交于 2019-12-06 18:42:18

问题


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?


回答1:


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

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




回答2:


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.



来源:https://stackoverflow.com/questions/3433730/in-visual-studio-how-to-select-word-in-text-editor-using-keyboard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!