Source Insight Common Settings

Source: Internet
Author: User
Tags tortoisesvn

1. Background color selection

To change the background color options->preference->windows background->color set the background color
2. Solve the problem of wide alignment of characters
SIS default font is Verdana, very beautiful. This page should also use the Verdana font. But for the sake of aesthetics, the Verdana font is unequal in width. Like the following two lines
Llllllllll
Mmmmmmmmmm
The same 10 characters, the length is much worse. Use Verdana to see the program, some should be aligned on the crooked. The method of liberation is to use the equal width of the font, but certainly more ugly. The more recommended is to use courier New.
3. Solve the tab indent problem
Options-> Document options inside the bottom right corner of the editing options bar, put expand tabs hook up, and then determine. OK, now the tab indent and the indentation of four spaces in SIS look Zishing
4. Automatic alignment setting in SI
In a C program, if you encounter a statement with no semicolon at the end of the line, such as if, while, switch, and so on, when you press ENTER at the end of the line, the new row is automatically indented two columns relative to the previous line. The auto indient type in auto indient under Option->document option has three types of none,simple,smart. Choose Simple type for personal recommendation.
5. When adding files to a project, add only certain types of files (file type filter)
When editing the assembly code, when you build project in SIS and add tree, the default setting does not include all the assembly files in the tree, only the. Inc and. ASM suffixes, not the. s suffix. And with SIS Open. s file, a piece of black and white no color, feel back to the DOS edit era ... The solution is to options->document options, click on the Document Type drop-down menu on the left, select x86 Asm Source file, and then in the right file filter *.asm;*.inc; *.S; Then close is all right. The above problem is resolved, but note that after adding *.S, you need to add the tree again to add these compilations to project.
6. Add File type
Users can define their own types, options->document options->add type, define file type names, and filename suffixes. Tick the include when adding to projects in the Add directory file to project is the type of file will be added into Si project. If you need to add all the files into the project of SI, you can define a file type, *. *.
7, restore CTRL + a full selection function
Save all by using the keyword, change to Ctrl+shift+a, select all by key, and change to Ctrl +a


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 for Source Insight:
Project Window Ctrl+o Open
Symbol window ALT+F8 Open and close
Contex Window Custom key open and close
Relation Window Custom Key Open first lock then refresh contact

The steps to add a custom feature in source Insight are as follows:
1.Source Insight, Options->custom commands...->add...,new Command name casually written, my is "Edit with Vim"
2.Run write: "C:\Program files\vim\vim63\gvim.exe"--remote-silent +%l%f, which means to open the current file in the currently open Gvim window, and jump to the specified line,%l is the current line number ,%f is the file name, the role of using--remote-silent is that if the corresponding file has been opened, it will not open the second time, but in the open file to jump to the corresponding line
3. In the same dialog box, select Keys->assign New key...-> Press F12, if you have set the F12 to other commands, select the other buttons.

Here are some common customization features: (Custom COMMANDS)Some of them are equivalent to SVN and need to be installed as version management SVN.

Open the Explorer and select the current file
ShellExecute Open Explorer/e,/select,%f
View Log
"C:\Program Files\tortoisesvn\bin\tortoiseproc.exe"/command:log/path:%f/notempfile/closeonend
diff
"C:\Program Files\tortoisesvn\bin\tortoiseproc.exe"/command:diff/path:%f/notempfile/closeonend
get Lock (check out)
"C:\Program Files\tortoisesvn\bin\tortoiseproc.exe"/command:lock/path:%f/notempfile/closeonend
submit (check in)
"C:\Program Files\tortoisesvn\bin\tortoiseproc.exe"/command:commit/path:%f/notempfile/closeonend
Updates (update)
"C:\Program Files\tortoisesvn\bin\tortoiseproc.exe"/command:update/path:%f/notempfile/closeonend
updating the entire directory (update all)
"C:\Program Files\tortoisesvn\bin\tortoiseproc.exe"/command:update/path:*.*/notempfile/closeonend
Unlock (undo Check out)
"C:\Program Files\tortoisesvn\bin\tortoiseproc.exe"/command:revert/path:%f/notempfile/closeonend
Edit in Ultriedit
"C:\Program Files\ultraedit-32/uedit32"%f
Edit and navigate to the current line in vim
"C:\Program files\vim\vim63\gvim.exe"--remote-silent +%l%f

more details

shellexecute open explorer/e,/select,%f The
       /* function is to open the current edit file in Explorer and select */
        /* can set shortcut keys such as ctrl+e, so it is convenient to open the corresponding file in the Explorer, and do TortoiseSVN related actions */

X:\progra~1\tortoisesvn\bin\ tortoiseproc.exe/command:log/path:%/notempfile/closeonend
       /* Before using note change the corresponding bin installation path */
       /* function is to directly view the current file of svn log*/
        /* You can set shortcut keys such as ctrl+l*/

X:\progra~1\tortoisesvn\bin\tortoiseproc.exe/command:diff/ path:%/notempfile/closeonend
        * * Note change the corresponding bin installation path before use */
        /* function is to view the comparison of the current file and base version directly */
       /* You can set shortcut keys such as ctrl+d*/


Other tips:
Let {and} do not indent: options->document options->auto indent->indent Open brace/indent Close Brace

Hold down "Ctrl", then point to a variable with your mouse and click to enter the definition of the variable.

Put a sourceinsight with a neat layout of C file, by chance with VC open a look, all messed up.

Reason: It is found that SI does not match the width of each character.
Workaround: Select "View-to draft view" to make the width of each character consistent. Shortcut key is "Alt + F12"

"Shift+f8" highlights words in all text where the cursor is located

Jump to a line: "Ctrl + G"

File filters in Source Insight
When you encounter a new project, you need to include files other than. C. h, such as. S,.SCF, makefile, and releasenotes, and each time you create a new project, even if you cancel shown only known document types, And after clicking Add All to select the recusively add Lower sub-directories, also can not recognize this kind of file, also can not join into the project, only our own manual double-click Add to the project, if the file is not OK, However, it is not feasible to have large projects that contain many sub-folders.

The solution is as follows:

Open source Insight, before you create a new project, enter

Options--Document Options ... ALT-T, click the drop-down box for document type, and then select Make File, and in the File filter on the right, add a semicolon after the original *.mak, that is, multiple different filtering rules are separated by semicolons, plus *makefile to become *. Mak;*makefile, and select include when adding to projects, so that in the future when the new project, you can identify makefile or makefile (as if the source insight is not case-sensitive).

Similar principles to other different types of files you want to add, add to the original file types, note that you want to separate the semicolon, or create a new file type directly, and then write the corresponding rules of concern, such as

Click Add Type, fill in the name of the new file type scatter File,file filter in *.SCF, note the following include when adding to projects, so that a new file type is established, When new projects are added to the file, the system will be able to identify files with the suffix SCF.

Of course, you can also make some formatting settings for your newly created file type. including Parsing,tab and so on settings.

supported in source insight. assembly file of S

In the Options->document options, click the Document Type drop-down menu on the left, select x86 Asm Source file, and then *.asm;*.inc in the File filter on the right, followed by *.s;* . S and then close is ready. This adds the assembly to project when you add the tree.
In the Options->document options, click the Document Type drop-down menu on the left, select C Source file, and then fill in the file filter on the right to *.s,*. S can look at the assembly like C

Source Insight Common Settings

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.