Source Insight---Setup Common Projects

What Are Common Projects?

Most Source Insight users make use of standard libraries, such as the C/C++ runtime libraries, or the standard Java packages. In order for Source Insight to provide symbol completion, and other symbolic features for standard libraries, you need to setup separate projects for those libraries. Source Insight will resort to searching these common projects if a symbol cannot be found in your current project.

The Setup Common Projects command will help you build projects for those libraries. The projects you build are added to the project symbol path, so Source Insight can provide symbol completion and other symbolic features for those libraries from within your own projects.

Creating Common Projects

Source Insight will ask you at this point if you want to create common projects.

In order for Source Insight to provide symbol completion, and other symbolic features for standard libraries, such as the C Runtime, or Java standard packages, you need to setup separate projects for those libraries. Source Insight will resort to searching these projects if a symbol cannot be found in your current project.

For each common project, you are asked to locate the directory where the corresponding files are located on your disk. If you installed the source code for your libraries on your disk, then you can take advantage of Source Insight to use the source code as a basis for the projects. For instance, you might click on a call to the function strtok in the C Runtime Library, and Source Insight will locate the source code for strtok.

The projects that you create at this point are automatically added to the project symbol path. Later, if you want to change that path, run the Preferences: Symbol Lookups command (Options menu) to edit it. You can always create projects later and add them to the path.

Setup Common Projects

This command asks you to indicate what common projects you would like to build.

This command runs automatically after you install Source Insight for the first time. You can also invoke this command directly at any time after that from the Preferences: Symbol Lookups dialog box.

Set Common Projects Dialog box

For each common project, you are asked to locate the directory where the corresponding files are located on your disk. If you installed the source code for your libraries on your disk, then you can take advantage of Source Insight to use the source code as a basis for the projects. For instance, you might click on the C function strtok, and Source Insight will locate the source code for strtok.

Each common project created here is appended to the project symbol path, which can also be edited in the Preferences: Symbol Lookups dialog box.

Note: Selecting a project to rebuild in this dialog box will replace the existing project, if any. Also, building a large project, such as the C/C++ Runtime and Windows Header project may take a few minutes.

Standard C/C++ and Windows Headers

This project is intended to include the standard Windows, C, and C++ include files, and/or source code. Source Insight will attempt to locate them by looking in your registry, however you will have to confirm their location. Click the Browse button to the right to locate the folder that contains the source files.

Standard MFC Files

This project is intended to include the MFC (Microsoft Foundation Classes) include files and/or source files. Click the Browse button to the right to locate the folder that contains the source files.

Standard Java Libraries

This project is intended to include the Java development kit source code for the standard Java packages, such as java.lang. Source Insight will attempt to locate them by looking in your registry, however you will have to confirm their location. Click the Browse button to the right to locate the folder that contains the source files.

.Net Framework

This project is used for symbolic auto-completion in C#. If you are not using C#, you do not need to select this project. You don’t need to specify a directory for this project because Source Insight creates it for you.

Continue

Click the Continue button to proceed and create the common projects that are checked. For each project that is checked, Source Insight will ask you to add files to that project. The Add and Remove Project Files dialog box will appear.

时间: 2024-11-09 06:39:09

Source Insight---Setup Common Projects的相关文章

Source Insight 使用积累

Source Insight 捷键及使用技巧 红色部分为我经常使用的部分 完成语法 :Ctrl+E 复制一行 :Ctrl+K 恰好复制该位置右边的该行的字符: Ctrl+Shift+K 剪切一行 :Ctrl+U 向前搜索 : F4 搜索选择的(比如选择了一个单词,shift+F4将搜索下一个) :Shift+F4 向后搜索 : F3 Shift+F3 : search the word under cusor backward F5: go to Line Ctrl+鼠标点击 :Jump to

Mac 使用Source Insight (借助Wine For Mac)

下载Wine for Mac 下载地址: http://sourceforge.net/projects/darwine/ 如果在百度直接搜的话,是另一个网址,这个才是正确的版本,如果下载有问题,可以下载我再百度云的分享. 所有需要用到的软件的百度云链接 http://pan.baidu.com/s/1mgxHZ3i 提取密码:yuxi 其中包含了: Wine XQuartz-2.7.7 Source Insight Wine安装 下载下来的是一个DMG文件,双击安装. Wine使用 打开Win

source insight常用设置以及快捷键

/************************************* 常用设置 ********************************/ 1.括号配对高亮:"在前括号左侧,后括号左侧" 双击鼠标左键,可以选定匹配括号和其中内容(<>,(),L{R},[]之间) 2.让{ 和 } 不缩进:Options -> Document Options -> Auto Indenting -> Auto Indent Type 选 Simple 还有

Source Insight 中使用 AStyle 代码格式工具

Source Insight 中使用 AStyle 代码格式工具 彭会锋 2015-05-19 23:26:32     Source Insight是较好的代码阅读和编辑工具,不过source insight没有集成代码格式化工具:GNU的astyle是一个较好的免费的代码格式化工具,经过它的格式化之后,代码排版会变得很漂亮:Astyle主要作为插件供其他程序调用,具体的使用方法如下: 1 astyle下载地址: http://sourceforge.net/projects/astyle/

在source insight中集成astyle

转自:http://www.cnblogs.com/xuxm2007/archive/2013/04/06/3002390.html 好吧,我有代码格式的强迫症,代码不整齐,我看的都头疼,之前一直喜欢用SourceStyler C++的,但是这个在win7下貌似不能使用,只能转向astyle了. http://www.cnblogs.com/xuxm2007/archive/2010/09/21/1832686.html 关于参数的话,差不过够用就行,不用非得调的那么精细,比较重要的是要看代码啊

Source Insight 常用设置和快捷键大全

1.括号配对高亮:"在前括号左侧,后括号左侧" 双击鼠标左键,可以选定匹配括号和其中内容(<>,(),L{R},[]之间) 2.让{ 和 } 不缩进:Options -> Document Options -> Auto Indenting -> Auto Indent Type 选 Simple 还有:让{ 和 } 不缩进: options->document options->auto indent 去掉indent Open Brace和

Source Insight 常用设置

1.背景色选择 要改变背景色Options->preference->windows background->color设置背景色2.解决字符等宽对齐问题    SIS默认字体是VERDANA,很漂亮.这网页上应该也是用的VERDANA字体.但由于美观的缘故,VERDANA字体是不等宽的.比如下面两行    llllllllll    MMMMMMMMMM    同样10个字符,长度差多了.用VERDANA来看程序,有些本应该对齐的就歪了.解放方法是使用等宽的字体,但肯定比较丑.比较推荐

source insight实用配置

1.设置字体大小options-document options ,找到screen fonts,即可打开下面的界面设置全文字体大小 2.往里添加中文注释时,字间距很大.解决方法如下: 1.Options->Style Properties 2.左边Style Name下找到Comment Multi Line.Comment.Comment Right.Comment Single Line.在右边对应的Font属性框下的Font Name中选"Pick..." 设置为宋体.常

source insight实用技巧

1 向项目中添加文件时,添加特定类型的文件(文件类型过滤器) 添加.pc文件和makefile文件,类型分别为C++,和Make File Options -> Document Options... Alt-T    -> 点击Document Type的下拉框,然后选择Make File,在右边的File Filter中,在原先的*.mak后面加上一个分号,即多个不同过滤规则以分号间隔开,再加上*makefile,变成 *.mak;*makefile,并且选中Include when ad