Source sight Configuration

Source: Internet
Author: User

1Fixed width font

Screen fontThe default font is verdana, which is always wider. In document style, you can change the font to Courier New with a fixed width. If it is not an equal-width font, useThe shortcut key is"Alt + F12"Switch to draft view to check whether the format meets the requirements.

 

2Ensure that spaces are consistent with the tab key.

OptionsMenu document options (for different file types, respectively) drop-down the top left file type box, select the appropriate type (C source file) Editing options box, Tab width = 4, editing options box, select expand tabs (in this way, press the tab key, equivalent to entering four spaces ).

 

3Solved automatic indentation {}

Remove indent open brace and indent close brace: In the last section, if "{" or "}" is entered in the relatively indent line, it is automatically aligned with the previous row.

Select auto indent smart in CProgramIf 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.

Check whether the indent open brace and indent close brace are effective in the previous section. If you enter "}", it is automatically aligned with the previous column (it seems that this function is available if it is not checked). When "{" is entered, it is not aligned with the following line (this is the effect when indent open brace is added ).

 

4Add a file of a specific type

If the suffix is not recognized, a file in SI will be displayed in black and white with no color. The solution is to select an appropriate type from the document type drop-down menu at the top left of Options> document options, then add the corresponding Suffix in the file filter on the right, such *. HH, and then close.

 

5 TabKey Usage

OptionsThe preferences typing card in the menu.

Typing tab indents line, Regardless of selection, empty rows cannot forward by Tab

Typing tab replaces current selection, The selected content is cleared when you press tab

In this way,Selected rowsCodeYou can press the tab key or SHIFT + TAB to move the code left and right. It is useful when you adjust the code.Similarly, F9 and F10.

 

6Automatic completion

OptionsChoose the preferences typing card auto completion box, check the use automatic symbol completion window (here is the global settings of SIS), the options menu document options editing options box, select allow auto-complete ). To enable Auto completion, You must select all of the preceding two items.

 

7 select the background color light green, eye protection

To change the background color options> preference> Windows Background> color, set the background color.,Set hue (color tone) to 85, sat (saturation) to 90, and Lum (brightness) to 205.

 

8Restore the full selection function of Ctrl +

Source insightCommon shortcut keys:
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

Alt + F8: Symbol window



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.