sourceInsight工程的说明_第1页
sourceInsight工程的说明_第2页
sourceInsight工程的说明_第3页
sourceInsight工程的说明_第4页
sourceInsight工程的说明_第5页
免费预览已结束,剩余8页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、word-文档系列学习交流Source Insight工程的说明说明:source in sight是我们在工作中最常用到的软件, 它对我们查找函 数,变量,修改代码起到了不可估量的作用。 熟练运用source in sight可以 提高工作效率,了解整个工程的架构是很有帮助的。一 source In sight工程的建立步骤1、打开source in sight如下图所示:2、工程目录的旁边建立一个文件夹,名字为 code_s (文件夹名字自己可以为任意,最好能够区 分工程)。3、 在source in sight里面,状态栏上,根据如下顺序,建立工程project- new project

2、,点击后如 下图所示:在上图中,new project name :创建你要建立的source in sight工程的名字。例如我们创建为M53_code.Where do you wa nt to stor the project data files?是我们要将创建的工程文件放入的路径是什么?我们选择刚才我们创建的code_s文件夹的路径。最后如图所示。4、按0K后,进入如下图所示的界面。Nev Project Sett lugsCorifiguration:'. Project has its own canFiguration file.Shaies global config

3、uration fileCondilional ParsingConditions.T hese condition values are pejecMpecific,T hey are merged with the global condition list found in PieFerences: Languages.Project Source Directoiy - the main location of your source files:F:M53code_sBrowse.Store function-local symbols in database. Local vana

4、blas get displayed with surtax formatting hsleL but the bol d自t日ba復已 can increase inby a factor of 2 o(more.Quick browsing for member names. You only fyps the member nanies of classes and 0 structures h biose, but the mbol inde« and memorM canby afactor of 2 or more.Quick browning for symbol sy

5、llables You only type one or more syllabh$ to locate 叼 symbols, but the 乞河bol iridH and memory usage can increese by a factor of 4 or more.在这个界面里,所有的选项我们都默认,但是选择工程路径是我们需要建立的工程路径。例如我 们现在要建立的工程路径是F:M53code那么,我们就要选择我们的工程路径。如图下图所示Pioject Source Directory - the main location of your soiree Ne$:F M53codeB

6、 rowse.5、按0K,进入下一个窗口。如图所示。Add zind Rus口m Px o jj cct F £ 1c sFile Name:口吨 FAM53codeDi rsctQry曰匚匡I10G8_mQidisIB- O 301BO Affl i Ctchee_v3-12.08 舟一I De wav 35 modis 审二j DietEfj O Dict_2 宙二j M301B O M53Project Files: (0)我们选择,后,BmtBootloaderBtadpIBtstackBuildCT-AAQtKti_l CMstom如下图所示,Add XreeR groov

7、e T reeri how Only knownJ document rupesAdd t13叼 In匚lude top level subdirectories0 Recursively add lower sub direclorie$我们在前面全部选择,然后按 OK。进行搜索源工程文件,搜索完成后,如图所示。Source Insight7472will added to the project.OK to continue?确定取消工程不同,文件的数量不同。这里有7472个文件。我们按确定后,按close,关闭上述窗口。工程建立成功。: source insight工程与源工程同步在上述

8、,工程建立之后,由于我们需要在source in sight修改的时候,修改源工程,那么我们需要source in sight工程与源工程同步。操作步骤如下。 点击状态栏project -> Sychronize Files 弹出下图窗口。Fie filter:Document Tvpe:DefaultFont Options Emulate screen fonts when printing0 Line up 恻hite spaceScreen Fonh.J佻说比12Printer Fonts. Verdana 3Use options from Ddadt tpeInclude w

9、hen adding to projectsStatus Bar Options.Lire, CoL SymbolC Line, CoL Char, EytePl Add new files auhmaticall叼 Force all files to be re-parsed| Synchronize the current source Hie onlj>0warriinfl messages我们全部选择,按OK,就实现了与源工程同步,在source in sight工程的修改,也是对源工程的修改。三、source insight显示字体的修改点击状态栏路径:opti ons Do

10、cume nt opt ins,弹出如下窗口ParsingEditing OptionsLanguage:nWord Wraolab width:4NonevL色n guage.0 Allow auto-completeMargin 啊 idth:pnCustom T ag Tpe:O Allow Smart PasteExpand tabs Visible tab&N o Custom ParserV0 Enter kev new line Visible spacer匚 jbom pattern:Show line numbersXSmbol Window Show right m

11、argin Show page breaks可以配置我们的显示。Screen Fonte,.Verdana UPwta Forts.Verdana 8这里是显示字体的大小的配置。四、常用的快捷键1、Alt + G模糊搜索函数,变量等。例如我们搜索goto_main_menu,输入goto_m就会显示出goto_ma in_menu。对应的图标是2、Ctrl + / 精确搜索,例如我们搜索goto_main_menu,输入它。如图所示:goto_main_menu 的地方,者Eth Pf o J 4 c L OpViW indfr# Hftlpi o x 睹垦 gq mn ®翌!马*血

12、同:® n B JP ;田曰1d ;巾k?-goto main menuSearch in会列出来。是选择搜索的范围,目前是在全部工程中搜索。只有用的 搜索结果如图: in 6 files)utorrmnimm im a i nme numa inrnen usrc):g ot o_rr air.nn enu 0;utommimmimainmenu.mainmenu?rc : * goto_nnain_Tenu utorrimimmirriainmenumainmenusr匚 woid goto_rriain_nnenu(void >ma in_menu_history .en

13、tryFuncP'MainMenu.c (p MainMenu.c tp MainMenu.c (p MainMenu,c (plutomrnimmirriainrrienumainrrienusrc);MainMenuProt.h (plutommimmirriainmenuKmairinnenuinc):extern void goto_main_nnenij( MiscFunctions.h (plutorrirriimrniidlescreenidlescreeninc): extern void goto_ go to_ma i n_me nu()? go to_ma i n

14、_me nu(); goto_ma iri_menu(); goto_maln_menu / goto_maln_menu), go to_maln_me nu(), goto_nnain_nneriui); got o_m ain_menuO;nnnenMte.c (plutommimrnirriterntesrc): Mte.c (p|ijtommimmimtemtesrc): Mte.c (plijtonnmlmmimtemtesrc): Mte.c (plijtommlrnmimtemtesrc): Mte. c (p11jtommIrnmimtemtesrc): Mte.c (pIu

15、tommImmimtemtesrc) SAT.c(plutomrnimmisatsatsro: SAT.c (pIutomrnimmisatsatsrc):_sr (ven usrrnniXpl1to_ecl ap terhorri 竽 qr&Er>):main_merMMlMl点击前面的工就会进入到文件里,或者将光标放在所需要进入文件的goto_main_menu 上,按Ctrl + =进入。对用的图标是3、Ctrl + =进入函数定义,或者进入变量定义。将光标放在所需要查看的函数或者变量上面,按快捷键之后会找到。对用的图标是4、Alt + / 查看函数,或者变量的信息。对应的

16、图标是5、 光标移动的顺序进行前进或者后退的快捷键*"斗Ctrl + , 和 ctrl + .6 回打开的文件中,向上或者向下查找选择的函数名或者变量等。快捷键是Shift + F3 向上, Shift +F4 向下6、ctrl + G 弹出锁定行的窗口。五、source insight常用的窗口1、图标亘 窗口是显示目前打开的文件,以及查找所需要的文件。如图所示M53 code Prcyect 忙-其VFile NameSize A町6166Al_drv. c i135176NIT6189. c Ccuston5913HITblSeAl drv. c i62361NIT6302 S

17、FI. cdr.12969Mt6302_spi .h (dr3513NIT6&16. c Ccuston8542Mt6Sl6 h 曲i-dr%4339HIT6516 drv. c Cfn51626HIT6&16 rds. c 19160Mie. c (plntommiS22342511Mg h (plutorrmi12737mt &Gpr ot. h (plut63T74Mte_data. h (Jlut194920Mt e_intg_r source100B05M t e_par sfi_i rugu;2212Mtkdebug. d&£ One0Mt

18、kdebug. inc (jn?65M tkgi f. h (plut onr3462c i25565Mtlonulti tp. c &331400MIKFrcpFcnt. h 心42963MTICPropFontO. h81757Mtk_os, det ng c i15378M tk_os_fliesyste2O9E5Mtk_cs, gui. c 触21690M tk_o s _m em ory. c7669Mtk_os multi tast2985m tk_o s_S o eke t - c16014Mtk cs, strine, c6B80M tk_o s _sys t em.

19、c55011Mtk_resg4ii orator60299Mtk simulator, rc10492MT?NF AD Channel3830M tpnp_ad_cJiaiiiiel476Mtpnp _ad c&niiron25961M tpnp_ad_c: on£i g.2E5Mtpikp_ad featurt271Mtpnp_ad_f底 atur243&Mtpnp ad feature2430IMTPNF AD Gwiiii12155MT?NF AD Gemini1524MT?NF AD Gwini3460MT?MF AD G&nini11354MTPNF

20、 AD Gemim12170MT?HF AD Gemini2509MT?NF AD Gwini8344 v匾匪1朋顫:?flg £ 同 |2、显示打开的文件的宏,变量名等结构的窗口JWte,c_|check theme:mm i _m t e_t oL ow er_s triiiigmmi_mit 电.i s_ emsirn 宜耳皀mini mte ini t i0if api iikdeK=NMI HTE RF.,0if &pi index=MMI MiTE RP.i=O;i<NMI_NTE_AFI_WEE mmi _mtia _ge t _baseb and_chi

21、 p电_ 垃电 t_l c dl_r e s olu t i on_mm i_mte _ge t _thim e_c omp onentEymb ol _i nf o电 _t 片 ansie_f onto i nt ermmi _m t« _ge t_f on t _Eymb olmm i _m t «_£6 t_theim e_c omp -QiiLeri t _i m age_i n£o<mmi _m t sfi _ge t _i m ge_i nf o_s tr i ng_e_ge t_i fin iage_di m ens i onAge_

22、f i ni sh_c allb acke_s t ar t_de c o de_i m age_op_d*c o dft_i m=e_get_theme_s.chemia_versi on 电召疤 t _them e_c omp oiieiit_niimie_ge t_them a_c omp onen tmmi_rit«_ri ap_th«n a_c onp oaent_nim e_t o_ol i_br inche_ge t_them a_c omp onen t s_i n_cwrr ent_s cr e en电.g;总 t _c om)p oneiitigr oup_nums_ge t_c om>p nnt_gr oup_mmi ee_ge t _sys t em_them e_dat 毎mmi jmt «_ge t_cur

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论