Source Insight Basic usage and shortcut keys

Source: Internet
Author: User

Why do you use Source InsightIt? It looks like it's faster than the full IDE, and it's easier to see a lot of code.

The installation of the software is simple and the installation directory is set up.

Configure the document path, of course, this can also be changed in the options, choose options->preferences ... The folders tag on the inside is fine.

Project creation and work area

In the menu, select project->new Project ... You can create a new project, customize the project name, select a save path, and then create a new one.

After the new determination, in the next menu, you need to select Project source directory:the main location of your source files. For example, I can choose the latest Android API 19 source Recorded.

When selected, the add and Remove Project Files dialog box appears, so you can select the file in the directory just before adding it.

The close dialog box will be available after load is complete. You can add a different path of code to come in.

When you're done,Project Window appears on the right, clicking on any of the files, and the content is displayed in the central editing area. On the left is the Symbol Window, which allows you to quickly locate functions, variable definitions, and so on. Below is the context Window, which displays useful contextual information. Various windows can be recalled or closed through the View menu . For example, Relative Window can show the method called in the method.

Synchronous

In the editing area, the keyboard presses CTRL, and when you click a variable or method with the mouse, it jumps to the definition of the variable or method.

If a variable or method is represented in a black font , it is not yet defined.

Of course sometimes it is not because there is no definition, need to synchronize,project->synchronizing Files.

View definition

You can select a variable, then right-Click, jump to Definition, go to definition.

Of course, as mentioned above, you can also directly CTRL + mouse click.

Select a variable or method within the editing area for two seconds and the Context window will automatically display the definition.

Find references

After selecting a variable or method, right-click the Lookup References ... You can find them.

Find results are displayed in a box, click on the red mark in front of each search result (two red triangle), the result corresponding to the code file, enter the code editing State, and then click on the code to find the corresponding line at the beginning of the red mark can be reversed to find the results page.

The toolbar has a corresponding icon to jump to the previous and next section.

The Lookup References Popup dialog box allows you to configure the options for the query. For example, if the case is sensitive, is not to find comments or only in the comments to find.

In addition, search method can be selected as a string, regular, keyword, or reference type.

Lookup Call

This is for the method, check the method name, and then right-click jumping to Caller, if only one call, then jump directly, if multiple calls, then display a list box, select an item will jump past.

The search in the file can be found through the menu.

Source Insight Common shortcut keys

1.Ctrl + mouse Click to enter definition.

2.Alt + F12 can be toggled, allowing the character widths to be consistent, or to be displayed in different sizes.

3.Shift + F8 The word that the cursor is in in the highlighted text.

4.Ctrl + G (or F5) jumps to a line.

5.Ctrl + O Search for files, find enter to open, cannot find ESC exit

6.Alt + G (or F7) to open the symbol Window.

7.Alt +, back; alt. forward.

8.Ctrl + F Find keywords.

Source Insight Basic usage and shortcut keys

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.