1. 将.cc 文件添加到 Source Insight 中:
1) “Options” --> “Document Options”
2) “Document Options” : "Document Type" 列表中 选择 "C++ Source File" 选 --> Add “;*.cc” in “File filter” -->项“Close”
2. 将.tcl 文件添加到 Source Insight 中:
1) Download tcl language file from: http://www.sourceinsight.com/public/languages/TCL.CLF
2) “Options” Menu --> “Preferences” In “Languages” Tab: --> “Languages” Click “import” --> Select “TCL.CLF” --> Select “TCL” in “Language” --> Click “Doc Types…” Button in “Languages” --> “Document Options”
3) In “Document Options” Dialog:Click “Add Type…” --> Type “tcl” as Document Type Name --> Type “*.tcl” in “File filter” --> Select “TCL” in “Language” Droplist --> Select "Include when adding to projects" Checkbox --> Click “Close” Button
3. 导入 NS2 源代码1) Click "Project" Menu --> New Project --> Type “NS2” as the project name --> Click “OK” Button --> Click “OK” Button in “New Project Setting” Dialog --> “Add and Remove Project Files” Dialog 2) In “Add and Remove Project Files” Dialog:
Select the NS2 source code file folder --> Click “Add All” Button --> Select “Recursively add lower sub-directories” --> Click “OK” Button --> Click “OK” for importing source code --> Click “Close” Button in “Add and Remove Project Files” Dialog