简体   繁体   中英

is there any shortcut key for select the method body in visual studio(with or without resharper)

有时我需要复制方法体,但最近我不得不经常这样做,这就是我为此寻找快捷方式的原因。

You can use ReSharper's " Extend Selection " to easily do this. Repeatedly hit the keyboard shortcut to extend the selection to the scope you want - if statement, for loop, method body, class declaration, etc. (There's an equivalent shortcut to shrink the selection, too, which will take you in the opposite direction.)

The shortcut is Ctrl + W to extend selection and Shift + Ctrl + W to shrink selection.

In Microsoft Visual Studio Community 2019 Version 16.5.0

Press alt + shift + ¡ (exclamation mark) once for curret block or many times for successive deeper blocks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM