'VisualStudio'에 해당되는 글 2건
- 2006/05/30 Perforce
- 2006/04/17 Visual Studio 단축키
- Perforce
- CS&E/C/C++
- 2006/05/30 01:19
- Perforce, VisualStudio

[그림 A-7] 퍼포스 메뉴: 등록된 소스의 편집을 시작하기 위해서 소스 저장소에서 가져오는 것을 체크 아웃(check out)이라고 한다. 체크 아웃된 소스의 편집이 끝나고 체크 인(check in)해 주면, 다른 사람은 가장 최근의 소스를 얻을 수 있다. 퍼포스는 여러 명이 동시에 같은 파일을 체크 아웃하는 것을 허용하며, 이러한 파일의 체크 인 시에 자동 머지를 지원한다.
리스토어 클래스 뷰 애드인
잘 정돈된 클래스 뷰의 폴더 구조가 깨어져서 고생한 독자들에게 리스토어 클래스 뷰(Restore ClassView)는 필수적이다. 아래의 화면은 필자가 참여하고 있는 범퍼킹(BumperKing) 프로젝트의 깨어진 클래스 뷰 화면이다.

[그림 A-8] 깨어진 클래스 뷰 폴더 구조: 리스토어 클래스 뷰를 이용하면 깨어진 클래스 뷰를 복구할 수 있다.
클래스 뷰 폴더 구조를 복구하기 위해, 리스토어 클래스 뷰 툴바의 열기 버튼을 선택해서 가장 최근에 저장한 클래스 뷰 구조 파일을 불러온다.
[그림 A-9] RestoreClassView: 클래스 뷰 폴더 구조의 열기와 저장을 지원한다.
툴바에서 리스토어 클래스 뷰 [열기] 버튼을 선택한 다음, 확장자가 .clv인 가장 최근에 저장해놓은 파일을 선택하면 클래스 뷰 폴더 구조가 복구된다.

[그림 A-10] 복구된 범퍼킹 프로젝트의 클래스 뷰: 소스가 1000개를 넘어가는 큰 프로젝트에서 클래스 뷰 구조를 복구하는 기능은 많은 도움이 된다.
비주얼 어시스트
비주얼 어시스트는 소스 작성을 돕는 편리한 툴이다. 대표적인 기능으로 멤버 함수 자동완성 기능, 멤버 함수 찾아가기 기능, 편집 문맥 표시 기능, 프로젝트 파일 열기 기능, 다중 클립보드 기능 등이 있다. 또한 클래스의 이름과 멤버 함수를 다른 색으로 표시하는 강화된 컬러기능은 한 눈에 함수의 종류를 판단하는데 도움을 준다. 아래의 그림은 비주얼 어시스트의 멤버 함수 자동완성 기능을 보인다.

[그림 A-11] 비주얼 어시스트의 소스 자동 완성 기능: 객체 이름 다음에 .이나 ->를 적는 순간 팝업되며, 두 문자를 타이핑치고, 탭 키를 누르면 여러 번의 타이핑을 줄일 수 있고, 타이핑 오류를 미연에 방지한다.
비주얼 어시스트의 멤버 함수 찾아가기 기능은 현재 커서가 위치한 문맥에서 클래스의 멤버 함수를 찾아가는 기능을 제공하므로, 빠르게 연관된 멤버 함수로 이동할 수 있다.

[그림 A-12] 비주얼 어시스트의 멤버 함수 찾아가기 기능: 멤버 함수의 이름을 입력하기 시작하면 일치하는 멤버 함수가 강조되고 엔터 키를 누르면 해당 멤버 함수로 이동한다.
비주얼 어시스트의 프로젝트 파일 열기 기능도 유용하다. 소스 파일이 클래스의 헤더를 포함한 경우, 위저드 바의 클래스 찾기 기능으로 쉽게 이동할 수 있지만, 전역 변수를 모아둔 파일이나, 이름 공간이 정의된 파일 등은 위저드 바의 클래스 찾기 기능을 이용해서 쉽게 해당 클래스로 이동할 수 없다. 이때 비주얼 어시스트의 프로젝트 파일 열기 기능을 선택하고, 파일 이름을 입력하기 시작하면 해당 파일을 강조하고 몇 번의 타이핑으로 해당 파일을 열 수 있다.
혹 독자들은 클래스 뷰나 파일 뷰에서 열려는 파일을 선택하면 되는데, 뭐가 문제지? 라고 생각할 수도 있을 것이다. 하지만 프로젝트를 이루는 소스 파일의 개수가 1000여개가 된다고 생각해보라. 긴 파일들의 리스트에서 소스파일을 찾는 것은 고된 일이지만, 비주얼 어시스트가 있으면 대여섯 번의 타이핑만으로 소스를 열수가 있다.

[그림 A-13] 비주얼 어시스트의 프로젝트 파일 열기 기능: 프로젝트 파일 열기를 단축 키로 매핑해 놓으면 대여섯 번의 타이핑만으로도 소스를 열 수 있다.
비주얼 어시스트의 문맥 표시 기능은 현재 커서가 위치한 곳의 문맥 정보를 동적으로 표시해준다. 예를 들면, 긴 if문에서 복잡한 블록을 편집중일 때, if문의 시작 부분은 화면 위로 스크롤 되어 보이지 않고, 특정 블록의 위치가 헷갈릴 때, 비주얼 어시스트의 문맥 기능을 보면 커서가 위치가 곳이 어딘지 쉽게 알 수 있다.
[그림 A-14] 비주얼 어시스트의 문맥 기능
비주얼 어시스트의 다중 클립보드 기능은 클립보드로 복사한 최근 텍스트 중에서 하나를 선택하여 붙여넣기를 하는 것을 지원한다. 예를 들면 복사해야 하는 코드가 세 군데에 흩어져 있고, 붙여넣기를 할 때 이 세 개 중 하나를 사용해야 한다고 하자. 비주얼 어시스트가 있다면, 원하는 세 곳의 텍스트를 선택하여 Ctrl+C를 눌러 일반적으로 복사한 다음, 붙여넣기를 할 때, Ctrl+V가 아니라 Ctrl+Shift+V를 누르면 아래와 같이 클립보드의 내용이 메뉴로 표시된다. 사용자는 원하는 클립보드의 내용을 선택하면 된다.

[그림 A-15] 비주얼 어시스트의 다중 클립보드 기능: 클립보드로 복사되는 최근의 텍스트 중에서 붙여넣기 원하는 텍스트를 선택할 수 있다.
윈탭
윈탭은 편집중인 소스 파일을 탭 컨트롤로 표시해주는 도구다. 파일 이름을 보고, 열려는 파일을 선택할 수 있으므로 편리하며 다양한 파일 관련 기능들을 제공한다.
[그림 A-16] 윈탭의 파일 탭 기능
탭 컨트롤 위에서 마우스 오른쪽 버튼을 누르면 다양한 종류의 컨텍스트 메뉴를 제공한다. 아래의 그림을 보자.

[그림 A-17] 윈탭의 컨텍스트 메뉴
눈에 띄는 기능은 탐색기의 컨텍스트 메뉴를 그대로 제공한다는 것이다. 그것은 비주얼 C++ 안에서 탐색기로 할 수 있는 많은 작업을 할 수 있다는 것을 의미한다.
인크레디빌드
인크레디빌드가 없는 비주얼 C++는 생각하기도 싫다! 인크레디빌드는 네트워크를 통하여 분산 컴파일/링크를 지원하는 유용한 툴이다. 필자가 진행 중인 범퍼킹 프로젝트의 경우 Rebuild All을 선택하면 펜티엄4 2.6에서 약 20분이 걸린다. 그런데 인크레디빌드를 사용하면 인크레디빌드 서버에 등록된 모든 컴퓨터와 협조하여 소스를 컴파일하고 링크하여 1분도 걸리지 않아 실행파일을 생성한다.

http://network.hanbitbook.co.kr/view.php?bi_id=1112
- Visual Studio 단축키
- CS&E
- 2006/04/17 22:30
- VisualStudio, 개발, 단축키
Global shortcut keys
The following shortcut key combinations can be used in various places within the integrated development environment (IDE).
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Edit.Copy | CTRL + C CTRL + INSERT | Copies the currently selected item to the system clipboard. |
| Edit.Cut | CTRL + X SHIFT + DELETE | Removes the currently selected item to the system clipboard. |
| Edit.CycleClipboardRing | CTRL + SHIFT + INS CTRL + SHIFT + V | Pastes an item from the Clipboard Ring tab of the Toolbox at the insertion point in the file and automatically selects the pasted item. You can review each item on the Clipboard by repeatedly pressing the shortcut keys. |
| Edit.GoToNextLocation | F8 | Moves the cursor to the next item, such as a task in the Task List window or a search match in the Find Results window. Each time you press F8, you move to the next item in the list. |
| Edit.GoToPreviousLocation | SHIFT + F8 | Moves the cursor to the previous item in the Task List window or Find Results window. |
| Edit.GoToReference | SHIFT + F12 | Displays the reference of the selection in the code. |
| Edit.OpenFile | CTRL + SHIFT + G | Displays the Open File dialog box where you can select an existing file to open. |
| Edit.Paste | CTRL + V SHIFT + INSERT | Inserts the Clipboard contents at the insertion point. |
| Edit.Redo | CTRL + SHIFT + Z CTRL + Y SHIFT + ALT + BACKSPACE | Restores the previously undone action. |
| Edit.SelectionCancel | ESC | Closes a menu or dialog box, cancels an operation in progress, or places focus in the current document window. Available only in the .NET Framework Designer. |
| Edit.Undo | ALT + BACKSPACE CTRL + Z | Reverses the last editing action. |
| File.Print | CTRL + P | Displays the Print dialog box where you can choose printer settings. |
| File.SaveAll | CTRL + SHIFT + S | Saves all documents in the current solution and any files in the external files project. |
| File.SaveSelectedItems | CTRL + S | Saves the selected items in the current project. |
| Tools.GoToCommandLine | CTRL + / | Places the caret in the Find/Command box on the Standard toolbar. |
| View.NextTask | CTRL + SHIFT + F12 | Moves to the next task in the Task List window. |
| View.PopBrowseContext | CTRL + SHIFT + 8 | Returns to the location from where the last browse operation was performed. Available in the Object Browser or Class View window. |
| View.ViewCode | F7 | Displays the selected item in Code view of the Editor. |
| View.ViewDesigner | SHIFT + F7 | Displays the selected item in Design view of the Editor. |
| View.WebNavigateBack | ALT + LEFT ARROW | Displays the previous page in the viewing history. Available only in the Web Browser window. |
| View.WebNavigateForward | ALT + RIGHT ARROW | Displays the next page in the viewing history. Available only in the Web Browser window. |
HTML Designer shortcut keys
The following shortcut key combinations can only be used while editing in the HTML Designer. Certain keys combinations are available only in a specific view of that designer.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Edit.ListMembers | CTRL + J | Lists members of the current class for statement completion when editing code. Available only in HTML view of the HTML Designer. |
| Edit.ParameterInfo | CTRL + SHIFT + SPACEBAR | Displays a tool tip that contains information for the current parameter, based on the current language. Available only in HTML view of the HTML Editor. |
| Edit.ViewBottom | CTRL + PAGE DOWN | Moves to the bottom of the current document. Available only in HTML View of the HTML Designer. |
| Edit.ViewTop | CTRL + PAGE UP (Save File As) | Moves to the top of the current window. Available only in HTML View of the HTML Designer. |
| Format.Bold | CTRL + B | Toggles the selected text between bold and normal. Available only in Design view of the HTML Designer. |
| Format.Bookmark | CTRL + SHIFT + L | Displays the Bookmark dialog box. Available only in Design view of the HTML Designer. |
| Format.ConvertToHyperlink | CTRL + L | When text is selected, displays the Hyperlink dialog box. Available only in Design view of the HTML Designer. |
| Format.DecreaseIndent | CTRL + SHIFT + T | Decreases the selected paragraph by one indent unit. Available only in Design view of the HTML Designer. |
| Format.IncreaseIndent | CTRL + T | Indents the selected paragraph by one indent unit. Available only in Design view of the HTML Designer. |
| Format.Italic | CTRL + I | Toggles the selected text between italic and normal. Available only in Design view of the HTML Designer. |
| Format.LockElement | CTRL + SHIFT + K | Prevents an absolutely positioned element from being inadvertently moved. Available only in Design view of the HTML Designer. |
| Format.ShowGrid | CTRL + G | Toggles show grid. Available only in Design view of the HTML Designer. |
| Format.SnapToGrid | CTRL + SHIFT + G | Specifies that elements are aligned using an invisible grid. You can set grid spacing on the Design pane of HTML Designer options in the Options dialog box, and the grid will be changed the next time you open a document. Available only in Design view of the HTML Designer. |
| Format.Underline | CTRL + U | Toggles the selected text between underlined and normal. Available only in Design view of the HTML Designer. |
| Table.InsertColumnstotheLeft | CTRL + ALT + LEFT ARROW | Adds one column to the left of the current column in the table. Available only in Design view of the HTML Designer. |
| Table.InsertColumnstotheRight | CTRL + ALT + RIGHT ARROW | Adds one column to the right of the current column in the table. Available only in Design view of the HTML Designer. |
| Table.InsertRowAbove | CTRL + ALT + UP ARROW | Adds one row above the current row in the table. Available only in Design view of the HTML Designer. |
| Table.InsertRowBelow | CTRL + ALT + DOWN ARROW | Adds one row below the current row in the table. Available only in Design view of the HTML Designer. |
| View.Details | CTRL + SHIFT + Q | Displays signal icons for HTML elements that do not have a visual representation, such as comments, scripts, and anchors for absolutely positioned elements. Available only in Design View of the HTML Designer. |
| View.NextView | CTRL + PAGE DOWN | Switches from Design view to HTML view and vice versa. Available only in Design view of the HTML Designer. |
| View.VisibleBorders | CTRL + Q | Displays a 1-pixel border around HTML elements that support a BORDER attribute and has it set to zero, such as tables, table cells, and divisions. Available only in Design view of the HTML Designer. |
XML Designer shortcut keys
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Schema.Collapse | CTRL + (-) | Collapses nested elements. Available only in Schema View of the XML Designer. |
| Schema.Expand | CTRL + (=) | Expands nested elements. Available only in Schema View of the XML Designer. |
Control manipulation shortcut keys
The following shortcut key combinations can be used to move, select, and change the size of controls on design surfaces.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Edit.MoveControlDown | CTRL + DOWN ARROW | Moves the selected control down in increments of 1 on the design surface. |
| Edit.MoveControlDownGrid | DOWN ARROW | Moves the selected control down in increments of 8 on the design surface. |
| Edit.MoveControlLeft | CTRL + LEFT ARROW | Moves the control to the left in increments of 1 on the design surface. |
| Edit.MoveControlLeftGrid | LEFT ARROW | Moves the control to the left in increments of 8 on the design surface. |
| Edit.MoveControlRight | CTRL + RIGHT ARROW | Moves the control to the right in increments of 1 on the design surface. |
| Edit.MoveControlRightGrid | RIGHT ARROW | Moves the control to the right in increments of 8 on the design surface. |
| Edit.MoveControlUp | CTRL + UP ARROW | Moves the control up in increments of 1 on the design surface. |
| Edit.MoveControlUpGrid | UP ARROW | Moves the control up in increments of 8 on the design surface. |
| Edit.SelectNextControl | TAB | Moves to the next control on the page. |
| Edit.SelectPreviousControl | SHIFT + TAB | Moves back to the previously selected control on the page. |
| Edit.SizeControlDown | CTRL + SHIFT + DOWN ARROW | Increases the height of the control in increments of 1 on the design surface. |
| Edit.SizeControlDownGrid | SHIFT + DOWN ARROW | Increases the height of the control in increments of 8 on the design surface. |
| Edit.SizeControlLeft | CTRL + SHIFT + LEFT ARROW | Reduces the width of the control in increments of 1 on the design surface. |
| Edit.SizeControlLeftGrid | SHIFT + LEFT ARROW | Reduces the width of the control in increments of 8 on the design surface. |
| Edit.SizeControlRight | CTRL + SHIFT + RIGHT ARROW | Increases the width of the control in increments of 1 on the design surface. |
| Edit.SizeControlRightGrid | SHIFT + LEFT ARROW | Increases the width of the control in increments of 8 on the design surface. |
| Edit.SizeControlUp | CTRL + SHIFT + UP ARROW | Decreases the height of the control in increments of 1 on the design surface. |
| Edit.SizeControlUpGrid | SHIFT + UP ARROW | Decreases the height of the control in increments of 8 on the design surface. |
Debugging shortcut keys
The following shortcut key combinations can be used while debugging code.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Debug.ApplyCodeChanges | ALT + F10 | Starts an Edit and Continue build to apply changes to code being debugged. |
| Debug.Autos | CTRL + ALT + V, A | Displays the Auto window to view the values of variables currently in the scope of the current line of execution within the current procedure. |
| Debug.BreakAll | CTRL + ALT+ Break | Temporarily stops execution of all processes in a debugging session. Available only in Run mode. |
| Debug.Breakpoints | CTRL + ALT + B | Displays the Breakpoints dialog box, where you can add and modify breakpoints. |
| Debug.CallStack | CTRL + ALT + C | Displays the Call Stack window to display a list of all active procedures or stack frames for the current thread of execution. Available only in Run mode. |
| Debug.ClearAllBreakpoints | CTRL + SHIFT + F9 | Clears all of the breakpoints in the project. |
| Debug.Disassembly | CTRL + ALT + D | Displays the Disassembly window. |
| Debug.EnableBreakpoint | CTRL + F9 | Sets a breakpoint at the current line of code. |
| Debug.Exceptions | CTRL + ALT + E | Displays the Exceptions dialog box. |
| Debug.Immediate | CTRL + ALT + I | Displays the Immediate window, where you can evaluate expressions and execute individual commands. |
| Debug.Locals | CTRL + ALT + V, L | Displays the Locals window to view the variables and their values for each procedure in the current stack frame. |
| Debug.Memory1 | CTRL + ALT + M, 1 | Displays the Memory 1 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables window. |
| Debug.Memory2 | CTRL + ALT + M, 2 | Displays the Memory 2 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables window. |
| Debug.Memory3 | CTRL + ALT + M, 3 | Displays the Memory 3 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables window. |
| Debug.Memory4 | CTRL + ALT + M, 4 | Displays the Memory 4 window to view large buffers, strings, and other data that do not display clearly in the Watch or Variables window. |
| Debug.Modules | CTRL + ALT + U | Displays the Modules window, which allows you to view the .dll or .exe files used by the program. In multiprocess debugging, you can right-click and select Show Modules for all Programs. |
| Debug.NewBreakpoint | CTRL + B | Inserts or clears a breakpoint in the current line of code. |
| Debug.QuickWatch | CTRL + ALT + Q | Displays the Quick Watch dialog box with the current value of the selected expression. Available only in Break mode. Use this command to check the current value of a variable, property, or other expression for which you have not defined a watch expression. |
| Debug.Registers | CTRL + ALT + G | Displays the Registers window, which displays registers content for debugging Native code applications. |
| Debug.Restart | CTRL + SHIFT + F5 | Terminates a debugging session, rebuilds, and then starts running the application from the beginning. Available in Break and Run modes. |
| Debug.RunningDocuments | CTRL + ALT + N | Displays the Running Documents window that displays the set of documents that you are in the process of debugging. Available in Run mode. |
| Debug.RunToCursor | CTRL + F10 | In Break mode, resumes execution of your code from the current statement to the selected statement. The Current Line of Execution margin indicator appears in the Margin Indicator bar. In Design mode, starts the debugger and executes your code to the cursor location. |
| Debug.SetNextStatement | CTRL + SHIFT + F10 | Sets the execution point to the line of code you choose. |
| Debug.ShowNextStatement | ALT + NUM * | Highlights the next statement to be executed. |
| Debug.Start | F5 | Automatically attaches the debugger and runs the application from the startup project specified in the <Project> Properties dialog box. Changes to Continue if in Break mode. |
| Debug.StartWithoutDebugging | CTRL + F5 | Runs the code without invoking the debugger. |
| Debug.StepInto | F11 | Executes code one statement at a time, following execution into function calls. |
| Debug.StepOut | SHIFT + F11 | Executes the remaining lines of a function in which the current execution point lies. |
| Debug.StepOver | F10 | Executes the next line of code, but does not follow execution through any function calls. |
| Debug.StopDebugging | SHIFT + F5 | Stops running the current application in the program. Available in Break and Run modes. |
| Debug.This | CTRL + ALT + V, T | Displays the This window, which allows you to view the data members of the object associated with the current method. |
| Debug.Threads | CTRL + ALT + H | Displays the Threads window to view all of the threads for the current process and information about them. |
| Debug.ToggleBreakpoint | F9 | Sets or removes a breakpoint at the current line. |
| Debug.ToggleDisassembly | CTRL + F11 | Displays the disassembly information for the current source file. Available only in Break mode. |
| Debug.Watch1 | CTRL + ALT + W, 1 | Displays the Watch1 window to view the values of selected variables or watch expressions. |
| Debug.Watch2 | CTRL + ALT + W, 2 | Displays the Watch2 window to view the values of selected variables or watch expressions. |
| Debug.Watch3 | CTRL + ALT + W, 3 | Displays the Watch3 window to view the values of selected variables or watch expressions. |
| Debug.Watch4 | CTRL + ALT + W, 4 | Displays the Watch4 window to view the values of selected variables or watch expressions. |
| Tools.DebugProcesses | CTRL + ALT + P | Displays the Processes dialog box, which allows you to debug multiple programs at the same time in a single solution. |
Search and replace shortcut keys
The following shortcut key combinations can be used with the Find, Replace, Find in Files, and Replace in Files dialog boxes.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Edit.Find | CTRL + F | Displays the Find dialog box. |
| Edit.FindInFiles | CTRL + SHIFT + F | Displays the Find in Files dialog box. |
| Edit.FindNext | F3 | Finds the next occurrence of the previous search text. |
| Edit.FindNextSelected | CTRL + F3 | Finds the next occurrence of the currently selected text in the document. |
| Edit.FindPrevious | SHIFT + F3 | Finds the previous occurrence of the search text. |
| Edit.FindPreviousSelected | CTRL + SHIFT + F3 | Finds the previous occurrence of the currently selected text, or the word at the caret. |
| Edit.GoToFindCombo | CTRL + D | Places the caret in the Find/Command line on the Standard toolbar. |
| Edit.HiddenText | ALT + F3, H | Selects or clears the Search Hidden Text option for Find dialog box. |
| Edit.IncrementalSearch | CTRL + I | Starts Incremental search. If Incremental search is started, but you have not typed any characters, recalls the previous pattern. If text has been found, searches for the next occurrence. |
| Edit.MatchCase | ALT + F3, C. | Selects or clears the Match Case option for Find and Replace operations. |
| Edit.RegularExpression | ALT + F3, R | Selects or clears the Regular expression option so that special characters can be used in Find and Replace operations. |
| Edit.Replace | CTRL + H | Displays the Replace dialog box. |
| Edit.ReplaceInFiles | CTRL + SHIFT + H | Displays the Replace in Files dialog box. |
| Edit.ReverseIncrementalSearch | CTRL + SHIFT + I | Changes the direction of Incremental search to begin at the bottom of the file and progress towards the top. |
| Edit.StopSearch | ALT + F3, S | Halts the current Find in Files operation. |
| Edit.Up | ALT + F3, B | Selects or clears the Search Up option for Find and Replace operations. |
| Edit.WholeWord | ALT + F3, W | Selects or clears the Match whole word option for Find and Replace operations. |
| Edit.Wildcard | ALT + F3, P | Selects or clears the Wildcard option for Find and Replace operations. |
Visual Database Tools shortcut keys
The following shortcut key combinations can be used in the Database Designer or Query Designer.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Database.Run | CTRL + E | Runs the currently active database object. |
| Database.RunSelection | CTRL + Q | Runs the current selection in the SQL editor. |
| Database.StepInto | ALT + F5 | Steps into debug mode for the currently active database object. |
| Query.Run | CTRL + R | Executes the query. Available only in the Query Designer. |
| View.Diagram | CTRL + 1 | Displays the Diagram pane of the Query designer. Available only in the Query designer. |
| View.Grid | CTRL + 2 | Displays the Grid pane of the Query designer. Available only in the Query designer. |
| View.Results | CTRL + 4 | Displays the Results pane of the Query designer. Available only in the Query designer. |
| View.SQL | CTRL + 3 | Displays the SQL pane of the Query designer. Available only in the Query designer. |
Text navigation shortcut keys
The following shortcut key combinations can be used in text editors to move within an open document.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Edit.CharLeft | LEFT ARROW | Moves the cursor one character to the left. Available only in the .NET Framework Designer. |
| Edit.CharRight | RIGHT ARROW | Moves the cursor one character to the right. Available only in the .NET Framework Designer |
| Edit.DocumentEnd | CTRL + END | Moves the insertion point to the last line of the document. |
| Edit.DocumentStart | CTRL + HOME | Moves the insertion point to the first line of the document. |
| Edit.GoTo | CTRL + G | Displays the Go To Line dialog box. |
| Edit.GoToBrace | CTRL + ] | Moves the insertion point to the next brace in the document. |
| Edit.LineDown | DOWN ARROW | Moves the cursor down one line. |
| Edit.LineEnd | END | Moves the cursor to the end of the current line. |
| Edit.LineStart | HOME | Moves the cursor to the beginning of the line. |
| Edit.LineUp | UP ARROW | Moves the cursor up one line. |
| Edit.NextBookmark | CTRL + K, CTRL + N | Moves to the next bookmark in the document. |
| Edit.PageDown | PAGE DOWN | Scrolls down one screen in the Editor window. |
| Edit.PageUp | PAGE UP | Scrolls up one screen in the Editor window. |
| Edit.PreviousBookmark | CTRL + K, CTRL + P | Moves to the previous bookmark. |
| Edit.QuickInfo | CTRL + K, CTRL + I | Displays Quick Info, based on the current language. |
| Edit.ScrollLineDown | CTRL + DOWN ARROW | Scrolls text down one line. Available in Text editors only. |
| Edit.ScrollLineUp | CTRL + UP ARROW | Scrolls text up one line. Available in Text editors only. |
| Edit.WordNext | CTRL + RIGHT ARROW | Moves the insertion point to the right one word. |
| Edit.WordPrevious | CTRL + LEFT ARROW | Moves the insertion point to the left one word. |
| View.BrowseNext | CTRL + SHIFT + 1 | Navigates to the next definition, declaration, or reference of an item. Available in the Object Browser and Class View window. |
| View.BrowsePrevious | CTRL + SHIFT + 2 | Navigates to the previous definition, declaration, or reference of an item. Available in the Object Browser and Class View window. |
Text selection shortcut keys
The following shortcut key combinations can be used in text editors to select text within an open document.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Edit.CharLeftExtend | SHIFT + LEFT ARROW | Moves the cursor to the left one character, extending the selection. Available only in the .NET Framework Designer. |
| Edit.CharLeftExtendColumn | SHIFT + ALT + LEFT ARROW | Moves the cursor to the left one character, extending the column selection. |
| Edit.CharRightExtend | SHIFT + RIGHT ARROW | Moves the cursor to the right one character, extending the selection. Available only in the .NET Framework Designer. |
| Edit.CharRightExtendColumn | SHIFT + ALT + RIGHT ARROW | Moves the cursor to the right one character, extending the column selection. |
| Edit.DocumentEndExtend | CTRL + SHIFT + END | Selects the text from the insertion point to the last line of the document. |
| Edit.DocumentStartExtend | CTRL + SHIFT + HOME | Selects the text from the insertion point to the first line of the document. |
| Edit.GoToBraceExtend | CTRL + SHIFT + ] | Moves the insertion point to the next brace, extending the selection. |
| Edit.LineDownExtend | SHIFT + DOWN ARROW | Extends text selection down one line, starting at the location of the insertion point. |
| Edit.LineDownExtendColumn | SHIFT + ALT + DOWN ARROW | Moves the cursor down one line, extending the column selection. |
| Edit.LineEndExtend | SHIFT + END | Selects text from the insertion point to the end of the current line. |
| Edit.LineEndExtendColumn | SHIFT + ALT + END | Moves the insertion point to the end of the line, extending the column selection. |
| Edit.LineStartExtend | SHIFT + HOME | Selects text from the insertion point to the start of the line. |
| Edit.LineStartExtendColumn | SHIFT + ALT + HOME | Moves the insertion point to the start of the line, extending the column selection. |
| Edit.LineUpExtend | SHIFT + UP ARROW | Selects text up line by line starting from the location of the insertion point. |
| Edit.LineUpExtendColumn | SHIFT + ALT + UP ARROW | Moves the cursor up one line, extending the column selection. |
| Edit.PageDownExtend | SHIFT + PAGE DOWN | Extends selection down one page. |
| Edit.PageUpExtend | SHIFT + PAGE UP | Extends selection up one page. |
| Edit.SelectAll | CTRL + A | Selects everything in the current document. |
| Edit.SelectCurrentWord | CTRL + W | Selects the word containing the insertion point or the word to the right of the insertion point. |
| Edit.SelectToLastGoBack | CTRL + = | Select from the current location in the Editor back to the previous location in the Editor. |
| Edit.ViewBottomExtend | CTRL + SHIFT + PAGE DOWN | Moves the cursor to the last line in view, extending the selection. |
| Edit.ViewTopExtend | CTRL + SHIFT + PAGE UP | Extends the selection to the top of the current window. |
| Edit.WordNextExtend | CTRL + SHIFT + RIGHT ARROW | Extends the selection one word to the right. |
| Edit.WordNextExtendColumn | CTRL + SHIFT + ALT + RIGHT ARROW | Moves the cursor to the right one word, extending the column selection. |
| Edit.WordPreviousExtend | CTRL + SHIFT + LEFT ARROW | Extends the selection one word to the left. |
| Edit.WordPreviousExtendColumn | CTRL + SHIFT + ALT + LEFT ARROW | Moves the cursor to the left one word, extending the column selection. |
Text manipulation shortcut keys
The following shortcut key combinations can be used in text editors to delete, move, or format text within an open document.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Edit.BreakLine | ENTER SHIFT + ENTER | Inserts a new line. |
| Edit.CharTranspose | CTRL + T | Swaps the characters on either side of the insertion point. For example, AC|BD becomes AB|CD. Available only in text editors. |
| Edit.ClearBookmarks | CTRL + K, CTRL + L | Removes all unnamed bookmarks in the current document. |
| Edit.ColllapseToDefinitions | CTRL + M, CTRL + O | Automatically determines logical boundaries for creating regions in code, such as procedures, and then hides them. |
| Edit.CommentSelection | CTRL + K, CTRL + C | Marks the current line of code as a comment, using the correct comment syntax for the programming language. |
| Edit.CompleteWord | ALT + RIGHT ARROW CTRL + SPACEBAR | Displays Word Completion based on the current language. |
| Edit.Delete | DELETE | Deletes one character to the right of the cursor. |
| Edit.DeleteBackwords | BACKSPACE SHIFT + BACKSPACE | Deletes one character to the left of the cursor. |
| Edit.DeleteHorizontalWhitespace | CTRL + K, CTRL + \ | Collapses white space in the selection, or deletes white space adjacent to the cursor if there is no selection. |
| Edit.FormatDocument | CTRL + K, CTRL + D | Applies the indenting and space formatting for the language as specified on the Formatting pane of the language in the Text Editor section of the Options dialog box. |
| Edit.FormatSelection | CTRL + K, CTRL + F | Correctly indents the selected lines of code based on the surrounding lines of code. |
| Edit.HideSelection | CTRL + M, CTRL + H | Hides the selected text. A signal icon marks the location of the hidden text in the file. |
| Edit.InsertTab | TAB | Indents the line of text a specified number of spaces, such as five. |
| Edit.LineCut | CTRL + L | Cuts all selected lines, or the current line if nothing has been selected, to the Clipboard. |
| Edit.LineDelete | CTRL + SHIFT + L | Deletes all selected lines, or the current line if no selection has been made. |
| Edit.LineOpenAbove | CTRL + ENTER | Inserts a blank line above the insertion point. |
| Edit.LineOpenBelow | CTRL + SHIFT + ENTER | Inserts a blank line below the insertion point. |
| Edit.LineTranspose | SHIFT + ALT + T | Moves the line containing the insertion point below the next line. |
| Edit.MakeLowercase | CTRL + U | Changes the selected text to lowercase characters. |
| Edit.MakeUppercase | CTRL + SHIFT + U | Changes the selected text to uppercase characters. |
| Edit.OverTypeMode | INSERT | Toggles between insert and overtype insertion modes. Available only when working in text editors. |
| Edit.StopHidingCurrent | CTRL + M, CTRL + U | Removes the outlining information for the currently selected region. |
| Edit.StopOutlining | CTRL + M, CTRL + P | Removes all outlining information from the entire document. |
| Edit.SwapAnchor | CTRL + R, CTRL + P | Swaps the anchor and end points of the current selection. |
| Edit.TabLeft | SHIFT + TAB | Moves selected lines to the left one tab stop. |
| Edit.ToggleAllOutlining | CTRL + M, CTRL + L | Toggles all previously marked hidden text sections between hidden and display states. |
| Edit.ToggleBookmark | CTRL + K, CTRL + K | Sets or removes a bookmark at the current line. |
| Edit.ToggleOutliningExpansion | CTRL + M, CTRL + M | Toggles the currently selected hidden text section between the hidden and display state. |
| Edit.ToggleTaskListShortcut | CTRL + K, CTRL + H | Sets or removes a shortcut at the current line. |
| Edit.ToggleWordWrap | CTRL +R, CTRL + R | Enables or disables word wrap in an editor. |
| Edit.UncommentSelection | CTRL + K, CTRL + U | Removes the comment syntax from the current line of code. |
| Edit.ViewWhiteSpace | CTRL + R, CTRL + W | Shows or hides spaces and tab marks. |
| Edit.WordDeleteToEnd | CTRL + DELETE | Deletes the word to the right of the insertion point. |
| Edit.WordDeleteToStart | CTRL + BACKSPACE | Deletes the word to the left of the insertion point. |
| Edit.WordTranspose | CTRL + SHIFT + T | Transposes the words on either side of the insertion point. For example, |End Sub would be changed to read Sub End|. |
Window management shortcut keys
The following shortcut key combinations can be used to move, close, or navigate within tool and document windows.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| View.FullScreen | SHIFT + ALT + ENTER | Toggles Full Screen mode on and off. |
| View.NavigateBackward | CTRL + - | Goes back to the previous document or window in the navigation history. |
| View.NavigateForward | CTRL + SHIFT + - | Moves forward to the document or window next in the navigation history. |
| Window.ActivateDocumentWindow | ESC | Closes a menu or dialog box, cancels an operation in progress, or places focus in the current document window. |
| Window.CloseDocumentWindow | CTRL + F4 | Closes the current MDI child window. |
| Window.CloseToolWindow | SHIFT + ESC | Closes the current tool window. |
| Window.MoveToDropDownBar | CTRL + F2 | Moves the cursor to the drop-down bar while the editor is in Code view. |
| Window.NextDocumentWindow | CTRL + F6 CTRL + TAB | Cycles through the MDI child windows one window at a time. |
| Window.NextPane | ALT + F6 | Moves to the next tool window. |
| Window.NextSplitPane | F6 | Moves to the next pane of a split pane view of a single document. |
| Window.NextTab | CTRL + PAGE DOWN | Moves to the next tab in the document or window. |
| Window.PreviousDocumentWindow | CTRL + SHIFT + F6 CTRL + SHIFT + TAB | Moves to the previous document in the Editor or Designer. |
| Window.PreviousPane | SHIFT + ALT + F6 | Moves to the previously selected window. |
| Window.PreviousSplitPane | SHIFT + F6 | Moves to the previous pane of a document in split pane view. |
| Window.PreviousTab | CTRL + PAGE UP | Moves to the previous tab in the document or window. |
Integrated Help shortcut keys
The following shortcut key combinations can be used to view and move among topics in Help.
| Command Name | Shortcut Keys | Description |
|---|---|---|
| Help.Contents | CTRL + ALT + F1 | Displays the Contents window for the documentation contained in MSDN. |
| Help.DynamicHelp | CTRL + F1 | Displays the Dynamic Help window, which displays different topics depending on what items currently have focus in the product. |
| Help.F1Help | F1 | Displays a topic from Help that corresponds to the current user interface selected. |
| Help.Index | CTRL + ALT + F2 | Displays the Index window for the documentation contained in MSDN. |
| Help.Indexresults | SHIFT + ALT + F2 | Displays the Index Results window, which lists the topics that contain the keyword selected in the Index window. |
| Help.NextTopic | ALT + DOWN ARROW | Displays the next topic in the table of contents. Available only in the Help (Web) browser window. |
| Help.PreviousTopic | ALT + UP ARROW | Displays the previous topic in the table of contents. Available only in the Help (Web) browser window. |
| Help.Search | CTRL + ALT + F3 | Displays the Search window, which allows you to search for words or phrases in the documentation contained in MSDN. |
| Help.Searchresults | SHIFT + ALT + F3 | Displays the Search Results window, which displays a list of topics that contain t |


Recent comment