TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

30 Favorite Visual Studio Keyboard Shortcuts

19 点作者 kadhinn将近 15 年前

10 条评论

giu将近 15 年前
My favorite keyboard shortcuts:<p>- CTRL + HYPHEN(-) for navigating backwards<p>- CTRL + SHIFT + HYPHEN(-) for navigating forwards<p>- CTRL + PERIOD(.) shows the smart tag, because almost nobody can hit that small rectangle with the mouse<p>- CTRL + SHIFT + F, <i>Find in Files</i>. I use this one quite often (mostly for a search in the entire solution); it's very fast and displays all the results in a separate window<p>- SHIFT + F12 (or CTRL + K, R) finds all references<p>On a sidenote: I've created a reference card including most of the VS keyboard shortcuts mentioned in the article and some more (I'm using it at work; looks pretty good printed). Too bad I didn't upload it yet. Looks like I'm going to publish it this evening on my journal.
评论 #1417835 未加载
jasonkester将近 15 年前
It's interesting to see how many of the things that you used to only be able to do with ReSharper are now standard VS.NET features. Strange though that Microsoft didn't keep the ReSharper keyboard shortcuts when they adopted the features, especially since the R# ones are often a lot more intuitive.<p>CTRL+/ (and SHIFT+CTRL+/) to comment (and block comment) selections, for instance is so intuitive that you discover it by accident. Same with the variants on SHIFT+CTRL+SPACE for various smart-completion tasks. CTRL+. (VS.NET's shortcut for smart completion) is not something I'd ever think to try unless I already knew it.
yread将近 15 年前
Also of interest are:<p>Ctrl + K, D - Formats document<p>Ctrl + K, X - Opens snippet picker<p>Ctrl + Shift V - Pastes text from the Clipboard ring (did you know that Visual studio has clipboard ring? :)<p>Ctrl + R, M - Extracts method<p>F2 - rename identifier (and its references)
评论 #1417845 未加载
unwind将近 15 年前
It's note to note that these seem to be implemented "ergonomically" rather than just by character.<p>On US keyboards, the opening bracket [ is easily available, while on e.g. Swedish keymaps you also need to press the Alt Gr key to get [ (it's at Alt Gr + 8).<p>Still, in Visual Studio the same physical key that is [ on US keyboards works as listed in this article, i.e. Control + å matches brackets. Nice!
评论 #1416959 未加载
gokhan将近 15 年前
Favorite, unless you use ReSharper.<p><a href="http://www.jetbrains.com/resharper/documentation/ReSharper25DefaultKeymap.pdf" rel="nofollow">http://www.jetbrains.com/resharper/documentation/ReSharper25...</a>
ecaradec将近 15 年前
"CTRL + :" then "of" -&#62; focus the command line window then open file by name with completion. Great for navigating among files.
rodh257将近 15 年前
Shift + Delete is my favourite. It cuts the current line, which I use as an easy way to delete a whole line at a time.
bmahloch将近 15 年前
For Unit Tests CTRL + R + T - debugs the current test. I always think to myself CTRL + Run + Test.
bunglebooz将近 15 年前
I always use the Ctrl + Period (.) and Ctrl + Hyphen (-)
pcestrada将近 15 年前
ALT-F4 - close application immediately