Pham The Hung

Tháng Chín 6, 2007

Entry for September 06, 2007 – Các phím tắt

Filed under: Yahoo 360 — phamthehung @ 7:47 sáng

Các phím tắt hay dùng trong VS 2005.
CTRL + K” chorded shortcuts
(Just hold CTRL down and type “K” then “N” for example)

  • CTRL + K, C: comment out the selected lines
  • CTRL + K, U: un-comment out the selected lines.
  • CTRL + K, K: new bookmark
  • CTRL + K, N: jump to next bookmark
  • CTRL + K, P: jump to previous bookmark
  • CTRL + K, F: format the selected lines
  • CTRL + K, I: show summary for the current token (e.g. variable type, Class summary, etc.)

Code Manipulations

  • CTRL + Shift + Space: show signature/ parameters info for the current function. Use Up/Down arrow key to go through list as usual
  • CTRL + Space: show Intellisent Popup.
  • CTRL + L: cut the current line
  • CTRL + Shift + L: delete the current line
  • CTRL + U: convert to lower case
  • CTRL + Shift + U: convert to uppercase
  • I can’t resist to include the highly addictive chorded shortcut CTRL + K + C/U for quickly commenting/ uncommenting code block
  • CTRL + Shift + F: Find for multiple files
  • CTRL + Shift + H: Find & Replace for multiple files
  • CTRL + F: find in current document.
    • F3: find next
    • Shift + F3: find previous
  • CTRL + K, I: show summary for the current token (e.g. variable type, Class summary, etc.)

Code Maneuvering

  • F12: go to definition
  • Shift + F12: go to declaration
  • CTRL + – (hyphen): jump to previous position
  • CTRL + Shift + – (hyphen): jump to next
  • CTRL + G: go to line #

Regions/ code blocks

  • CTRL + M, O: Collapse all region blocks
  • CTRL + M, M: toggle current block (such as collapsing/ expanding a method block)
  • CTRL + M, P: toggle comment block (?)
  • CTRL + M, L: Expand/ Collapse All

Build-Debug

  • CTRL + Shift + B : build solution
  • CTRL + F5: Run without Debugging
  • Shift + F5: Break Debugging (VS2005 default key combination for this is changed, but you can reassign back to the “conventional” VS2003 way. Or use Shift + Break – the new combination)
  • F9: set breakpoint
  • CTRL + Shift + F9: clear all breakpoints
  • CTRL + ALT + V, L: Open Locals Window (Debug)
  • CTRL + ALT + V, A: Open Autos Window (Debug)
  • CTRL + ALT + C: Open Call stack Window (Debug)
  • Ctrol + Alt + W, [1,2,3,4]: Open Watch windows (Debug)

Miscellaneous

  • CTRL + Tab: switch between opening files. Hold
  • CTRL + PAGE UP/ DOWN: tab between available “view” of the currently opened document (e.g. Design view, Source View, etc.)
  • CTRL + W: select the word under the current caret position. (Watch out for this since in both IE and FF, CTRL W will close the current tab.)
  • ALT + Mouse Drag: Retangular block selection (e editor also has this feature and make it even better)
  • CTRL + I, then type the search word, then F3: incremental search (a.k.a. search-in-place)

Important Windows

  • CTRL + ALT + L: Solution Explorer
  • CTRL + ALT + K: Task List
  • CTRL + ALT + O: Output
  • CTRL + Shift + C: Class View
  • CTRL + ALT + V, L: Locals (Debug)
  • CTRL + ALT + V, A: Autos (Debug)
  • CTRL + ALT + C: Call stack (Debug)
  • CTRL + ALT + W, [1,2,3,4]: Watch windows (Debug)
  • CTRL + ALT + V, [1,2]: Find Results windows
Advertisements

%(count) bình luận »

  1. Kinh qu nhỉ, dạy Tin hoc online.ng anh lắm nghề qu

    Bình luận bởi linh_chi — Tháng Chín 6, 2007 @ 10:34 sáng | Phản hồi


RSS feed for comments on this post. TrackBack URI

Trả lời

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Đăng xuất / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Đăng xuất / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Đăng xuất / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Đăng xuất / Thay đổi )

Connecting to %s

Tạo một website miễn phí hoặc 1 blog với WordPress.com.

%d bloggers like this: