Shortcut Keys and tips for using Source Insight

Source: Internet
Author: User

Exit program: Alt + F4
Screen re-painting: CTRL + ALT + Space
Complete Syntax: Ctrl + E
Copy a row: Ctrl + k
Just copy the character of the row on the right of the Location: Ctrl + Shift + k
Copy to clipboard: Ctrl + Del
Cut a row: Ctrl + U
Cut the character of the row on the right of the position: Ctrl +;
Cut to clipboard: Ctrl + Shift + X
Cut a word: Ctrl +,
Left indent: F9
Right indent: F10
Insert a row: Ctrl + I
Insert a new row: Ctrl + enter
Add a row: Ctrl + J
Paste from clipboard: Ctrl + Ins
Paste a row: Ctrl + P
Repeat the previous action: Ctrl + Y
Re-number: Ctrl + R
Repeated input: Ctrl +
Replace: Ctrl + H
Intelligent rename: Ctrl +'
Close file: Ctrl + W
Close all files: Ctrl + Shift + W
New: Ctrl + n
Go to the next file: Ctrl + Shift + n
Open: Ctrl + O
Reload the file: Ctrl + Shift + O
Save as: Ctrl + Shift + S
Show File status: Shift + F10
Activation syntax window: Alt + L
Return to the beginning of the row: Home
Return to the start of the Selection: Ctrl + Alt + [
To the block: Ctrl + Shift +]
To the block above: Ctrl + Shift + [
Bookmarks: Ctrl + M
To the bottom of the file: Ctrl + End, Ctrl + (KeyPad) End
To the bottom of the window: (KeyPad) End (END of the KeyPad)
To the End of a row: End
To the end of the selected part: Ctrl + Alt +]
To the next function: keypad +
Previous function: keypad-
Back: Alt +, Thumb 1 Click
Back to index: Alt + M
Forward: Alt +., Thumb 2 Click
To the row: F5, Ctrl + G
Go to the next modification: Alt + (KeyPad) +
Go to the next link: Shift + F9, Ctrl + Shift + L
Return to the previous modification: Alt + (KeyPad )-
Jump to the connection (where the syntax serial port list is located): Ctrl + L
Skip match: Alt +]
Next page: pgdn, (keypad) pgdn
Previous Page: pgup, (keypad) pgup
Scroll up half screen: Ctrl + pgdn, CTRL + (keypad) pgdn, (keypad )*
Scroll down the half screen: Ctrl + pgup, CTRL + (keypad) pgup, (keypad )/
Left roll: Alt + left
Scroll up a row: Alt + down
Scroll down a row: Alt + up
Right roll: Alt + Right
Select one piece: Ctrl +-
Select a character on the left of the current position: Shift + left
Select a character on the right of the current position: Shift + Right
Select a row: Shift + F6
Select SHIFT + down from the start of the current row
Select SHIFT + up from the beginning of the current row
Select the previous page: Shift + PgDn, Shift + (KeyPad) PgDn
Select the next page: Shift + PgUp, Shift + (KeyPad) PgUp
Select a sentence (until a. Is encountered): Shift + F7, Ctrl +.
From the current location to the End of the file: Ctrl + Shift + End
From the current position to the End of the row: Shift + End
From the current position to the beginning of the row: Shift + Home
From the current position to the top of the file: Ctrl + Shift + Home
Select a word: Shift + F5
Select the word on the Left: Ctrl + Shift + Left
Select the Right word: Ctrl + Shift + Right
To the top of the file: Ctrl + Home, Ctrl + (KeyPad) Home
To the top of the window: (keypad) Home
To the left of a word (that is, to the beginning of a word): Ctrl + left
To the right of a word (to the end of the word): Ctrl + Right
Sort syntax window (there are three sort modes: 1, 2, 3): Alt + F7
Remove files: Alt + Shift + R
Synchronization file: Alt + Shift + S
Incremental search (when you use Ctrl + F to search, and then press F12, it will go to the next match): F12
Replace file: Ctrl + Shift + H
Search backward: F3
Search for multiple files: Ctrl + Shift + F
Search forward: F4
Search selected (for example, if you select a word, Shift + F4 will search for the next one): Shift + F4
Search: Ctrl + F
Browse local syntax (the File Syntax List window pops up. If you place the cursor in a variable/function, you can list the variable/function information in this file): F8
Browsing project Syntax: F7, Alt + G
Skip to basic type (that is, skip to prototype): Alt + 0
Jump to definition (that is, declaration): Ctrl + =, Ctrl + L Click (select), Ctrl + Double L Click
Check reference: Ctrl +/
Syntax information (the information of this syntax is displayed): Alt +/, Ctrl + R Click (select)
Highlight the current word: Shift + F8
Syntax window (hide/show syntax window): Alt + F8
Close Window: Alt + F6, Ctrl + F4
Last window: Ctrl + Tab, Ctrl + Shift + Tab

Several frequently used shortcut keys
By default, SI has defined many useful shortcut keys:
F5
Specify a row number to redirect rows. When a compilation error occurs, you can easily locate the error row.
Shift + F8
Highlight the specified ID to quickly view the usage of the ID.
Ctrl + Click the icon
Jump directly to the ID definition.
Ctrl + F
Search in this file.
F3
The last query result in this file.
F4
Next to the search result in this file.
F7
Open the Browse Project Symbols window to quickly Browse the identity definitions in the Project.
Ctrl + M
Create or search for bookmarks so that you can retrieve the bookmarks next time.

Source Insight skills collection
1. Select the background color
To change the background color Options> preference> windows background> color, set the background color.
2. Solve the Problem of equal-width alignment of characters.
The default SIS font is VERDANA, which is very beautiful. This web page should also use VERDANA fonts. But for the sake of beauty, VERDANA fonts are not wide. For example, the following two rows
Llllllllll
Mmmmmmmm
The length is also 10 characters, which is too long. VERDANA is used to check the program, and some of them should be aligned. The method of liberation is to use an equal-width font, but it must be ugly. Courier New is recommended.
3. Solve the TAB key indent Problem
Options-> in the Editing Options column in the lower-right corner of Document Options, check Expand tabs, and then confirm. OK. Now the TAB key indent and four spaces indent appear aligned in SIS.

4. Automatic Alignment settings in SI:
In the C program, IF a statement without a semicolon at the end of a row, such as IF, WHILE, or SWITCH, is written to the end of the row and press enter, the new row is automatically indented to the previous row.
Option-> Auto Indient Type in Auto Indient under Document option has three types: None, Simple, and Smart. The Simple type is recommended for individuals.
5. When adding files to a project, add only specific types of files (File Type Filter)
When editing assembly code, when creating a PROJECT in SIS and adding a TREE, all Assembly files in the TREE are not included according to the default settings.
Only. inc and. asm suffixes are added. s suffixes are not added. In addition, the. s file opened with SIS is black and white, and there is no color. It feels like it is back to the EDIT age of DOS ......
Solution: In Options-> Document Options, click the Document Type drop-down menu on the left and select x86 Asm Source File,
Then add *. s; To *. asm; *. inc; in the File filter on the right, and then CLOSE.
The above problem is solved, but note that after adding *. s, you need to ADD the TREE again to ADD the assembly to the PROJECT.
6. Add file types
You can define your own types, options-> document options-> Add type, and define the file type name and file name suffix.
Select include when adding to projects and add files under the Add directory to the project. This type of files will be added to the SI project.
If you want to add all files to the SI project, you can define a file type *.*.
7. Restore the full selection function of Ctrl +
Use the keyword save to find save all, change it to Ctrl + Shift + A, select all through the keyword select, and change it to Ctrl +

Common shortcut keys for source insight:
CTRL + =: Jump to definition
Alt +/: Look up reference
F3: Search backward
F4: search forward
F5: go to line
F7: Look up symbols
F8: Look up local symbols
F9: IDENT left
F10: IDENT right
Alt +,: Jump backword
Alt +.: Jump forward
Shift + F3: search the word under cusor backward
Shift + F4: search the word under cusor forward
F12: incremental search
Shift + Ctrl + f: search in project
Shift + F8: hilight word

Window operations of Source Insight:
Project window Ctrl + O open
Symbol window Alt + F8 Open and Close
Contex Window custom key opening and closing
The Relation Window custom key is opened, locked first, and then refreshed.

To add a custom feature to Source Insight, follow these steps:
1. In Source Insight, Options-> Custom Commands... -> Add ..., New Command name can be written at will. My name is "Edit with Vim"
2. Run: "C: Program FilesVimvim63gvim.exe"-remote-silent + % l % f
This indicates opening the current file in the currently opened gvim window and redirecting to the specified row.
% L is the current row number, and % f is the file name
-Remote-silent is used to jump to the corresponding row instead of opening the corresponding file for the second time.
3. In the same dialog box, select Keys-> Assign New Key... -> Press F12. If you have set F12 to another command, select another key.

Other tips:

Make {And} unindent:

Options-> Document Options-> Auto Indent-> Indent Open Brace/Indent Close Brace

Hao space: SourceInsight tips
1. Press ctrl and point to a variable. Click it to enter the definition of the variable.

2. Today, I opened a C file neatly formatted with sourceinsight and accidentally opened it with VC. After studying for half a day, we found that SI has different width for each character.
Ask your colleagues to select "view-> draft view" to make the width of each character consistent. The shortcut key is "Alt + F12 ″

3. "shift + F8" indicates the words at the cursor position in all text

4. Jump to a line: "ctrl + g"

Source Insight is a good tool for reading and writing code. It is basically a classic. Although there is still a small bug, it is not necessary for these C programmers. The following tips are summarized by colleagues at work, which is helpful for improving work efficiency. Some of them correspond to SVN, users who do not use SVN for version management should not waste effort.

File filter in Source Insight

When creating a new project, you need to add some addition. c. files other than h, such. s ,. scf, Makefile, and ReleaseNotes files, and even if the shown only known document types is canceled each time you create a project, and after you click Add All, select Recusively add lower sub-directories, this type of files still cannot be identified, so they cannot be added to the project. We can only manually double-click them to add them to the project. If there are few files, it doesn't matter, but it contains many large projects with subfolders, this is really not feasible.

Baidu finally found the solution:

Open Source Insight and enter

Options-> Document Options... Alt-T-> click the Document Type drop-down box and select Make File. In the File Filter on the right, in the original *. add a semicolon after the mak, that is, multiple different filtering rules are separated by semicolons, and add * makefile *. mak; * makefile, and select Include when adding to projects. In this way, you can identify makefile or Makefile when creating a new project (as if Source Insight is not case sensitive ).

Similar principle: add different types of files you want to add to the backend of some original file types respectively. Be sure to separate them with semicolons or directly create a new file type, then write the corresponding concern rules, such

Click Add Type, enter the name of the new File Type Scatter File, and write * in File Filter *. if you select Include when adding to projects in the lower part, a new file type is created. when a new project is added to a file, the system will be able to identify files with a suffix of scf.

Of course, if you are interested, you can also perform some formatting settings for the new file type. Including Parsing and Tab settings.

 

From http://www.result-search.com/card/peter? P = 110

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.