First, create a project (here is C + +, the other same)
On the VS page, click File--New--Project:
The following interface will appear, you can change the name and storage location on it
OK, and then click Next:
This will build a project and then follow the diagram to add a new code file, and an existing file
This makes it possible to use the VS code codes.
Two: vs scanf error problem
This is done as shown in the main interface, typically open view--Properties page--Configuration Properties-->c/c++---preprocessor type
_crt_secure_no_deprecate
This problem is solved.
Three: vs Common shortcut keys
Commonly used for:
Ctrl + F5 Run code
F7 compiling
F10 Stepping Debugging
F11 process Debugging
Ctrl + H Replace, find
Ctrl +k +c Comment Whole paragraph check code
Ctrl + K + U Remove comments from the selected code
Look for the rest below.
Shift+alt+enter: Toggle Full Screen editing
Ctrl+b,t/ctrl+k,k: Toggle Bookmark Switch
Ctrl+b,n/ctrl+k,n: Move to Next Bookmark
Ctrl+b,p: Move to previous bookmark
Ctrl+b,c: Clear All labels
Ctrl+i: Incremental Search
Ctrl+shift+i: Reverse Incremental Search
Ctrl+f: Find
Ctrl+shift+f: Finding in Files
F3: Find the next
SHIFT+F3: Find Previous
Ctrl+h: Replace
Ctrl+shift+h: Replace in file
ALT+F12: Find Symbol (List all find results)
Ctrl+shift+v: Clipboard Looping
CTRL + LEFT and RIGHT arrow keys: One word can be moved at a time
CTRL + UP and DOWN ARROW keys: Scrolls the code screen, but does not move the cursor position.
Ctrl+shift+l: Delete When moving forward
Ctrl+m,m: Hides or expands the currently nested collapsed state
CTRL+M,L: Set all procedures to the same hidden or expanded state
Ctrl+m,p: Stopping outline display
Ctrl+e,s: View Blank
Ctrl+e,w: Wrap Line
Ctrl+g: Go to the specified line
shift+alt+ arrow key: Select Rectangle text
ALT + left mouse button: Select rectangle text
Ctrl+shift+u: All Uppercase
Ctrl+u: All turns lowercase
Code shortcut keys
Ctrl+j/ctrl+k,l: List Members
ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information
Ctrl+k,i: Quick Info
Ctrl+e,c/ctrl+k,c: Comment Selection
Ctrl+e,u/ctrl+k,u: Deselect Comment content
Ctrl+k,m: Generate Method Stub
Ctrl+k,x: Inserting Code Snippets
Ctrl+k,s: Inserting the outer code
F12: Go to the definition of the called procedure or variable
Window shortcut keys
Ctrl+w,w: Browser window
Ctrl+w,s: Solution Manager
Ctrl+w,c: Class View
Ctrl+w,e: Error List
Ctrl+w,o: Output View
Ctrl+w,p: Properties Window
Ctrl+w,t: Task List
Ctrl+w,x: Toolbox
Ctrl+w,b: Bookmark window
Ctrl+w,u: Document Outline
Ctrl+d,b: Breakpoint Window
Ctrl+d,i: Immediate Window
Ctrl+tab: Active form Toggle
Ctrl+shift+n: New Project
Ctrl+shift+o: Open Project
Ctrl+shift+s: Save All
Shift+alt+c: New Class
Ctrl+shift+a: New Item
Shift+alt+enter: Toggle Full Screen editing
Ctrl+b,t/ctrl+k,k: Toggle Bookmark Switch
Ctrl+b,n/ctrl+k,n: Move to Next Bookmark
Ctrl+b,p: Move to previous bookmark
Ctrl+b,c: Clear All labels
Ctrl+i: Incremental Search
Ctrl+shift+i: Reverse Incremental Search
Ctrl+f: Find
Ctrl+shift+f: Finding in Files
F3: Find the next
SHIFT+F3: Find Previous
Ctrl+h: Replace
Ctrl+shift+h: Replace in file
ALT+F12: Find Symbol (List all find results)
Ctrl+shift+v: Clipboard Looping
CTRL + LEFT and RIGHT arrow keys: One word can be moved at a time
CTRL + UP and DOWN ARROW keys: Scrolls the code screen, but does not move the cursor position.
Ctrl+shift+l: Delete When moving forward
Ctrl+m,m: Hides or expands the currently nested collapsed state
CTRL+M,L: Set all procedures to the same hidden or expanded state
Ctrl+m,p: Stopping outline display
Ctrl+e,s: View Blank
Ctrl+e,w: Wrap Line
Ctrl+g: Go to the specified line
shift+alt+ arrow key: Select Rectangle text
ALT + left mouse button: Select rectangle text
Ctrl+shift+u: All Uppercase
Ctrl+u: All turns lowercase
Code shortcut keys
Ctrl+j/ctrl+k,l: List Members
ctrl+shift+ SPACEBAR/ctrl+k,p: Parameter information
Ctrl+k,i: Quick Info
Ctrl+e,c/ctrl+k,c: Comment Selection
Ctrl+e,u/ctrl+k,u: Deselect Comment content
Ctrl+k,m: Generate Method Stub
Ctrl+k,x: Inserting Code Snippets
Ctrl+k,s: Inserting the outer code
F12: Go to the definition of the called procedure or variable
Window shortcut keys
Ctrl+w,w: Browser window
Ctrl+w,s: Solution Manager
Ctrl+w,c: Class View
Ctrl+w,e: Error List
Ctrl+w,o: Output View
Ctrl+w,p: Properties Window
Ctrl+w,t: Task List
Ctrl+w,x: Toolbox
Ctrl+w,b: Bookmark window
Ctrl+w,u: Document Outline
Ctrl+d,b: Breakpoint Window
Ctrl+d,i: Immediate Window
Ctrl+tab: Active form Toggle
Ctrl+shift+n: New Project
Ctrl+shift+o: Open Project
Ctrl+shift+s: Save All
Shift+alt+c: New Class
Ctrl+shift+a: New Item
VS 2013--Project creation, scanf error, common shortcut keys, line number settings