New Features in Version 4. Source Dynamics Source Insight 4.0
विज्ञापन
विज्ञापन
New Features in Version 4
New Features in Version 4
Many new features have been added to version 4 of Source Insight. Here are some of the highlights:
•
Improved language parsing for C/C++, C#, Java, and other languages.
•
Language support now built-in for Objective-C, Python, PHP, XML, and JSON files.
•
Imports symbols from external sources, such as .NET assemblies, Java JAR files, and Include files. Use
Project > Import External Symbols
to do this. See “Importing Symbols from Libraries” on page 53.
•
File Window tabs appear across the top of the main application window. Right-click on them and select Window Tab Options to change the sort order.
•
Collapsible code blocks. You can control the position and appearance by selecting Options > Prefer-
ences: Windows
and refer to the Outline and Nesting section. See “Outlining and Collapsing Text” on page 119.
•
File and directory comparing (diff). Invoke them from the Tools menu. See “File Compare” on
page 199. See “Directory Compare” on page 185.
•
•
Unicode support.
•
New User Interface with Panels and Visual Themes. See “Visual Themes” on page 138.
•
New Overview scroller bar is positioned like a scroll bar, but gives you a bird's eye view of your file. It works a little different than a scroll bar, but you can use it to scroll. It can show you the boundaries of
•
New enhanced vertical scroll bar shows more details within the scroll bar. Right-click on it and select
Scroll Bar Options to play with its settings. See “Scroll Bar Options” on page 312.
•
Multiple window layouts you can switch quickly. Use either View > Load/Save Layout, or click one of
the layout toolbar buttons to quickly switch between 4 different layout presets. See “Saving Window
Arrangements with Layouts” on page 140.
•
Code Snippets - define templates of code to insert. Select Tools > Activate Snippet Window to show the
Snippet panel. Snippets are intended for boiler plate text the you want to insert. You can put text variables in the snippet text that get expanded when you insert the snippet. For example
$date$
gets
replaced with the current date. See “Code Snippets” on page 96.
•
Improved bookmarks - book marks are now stored persistently and they are stored as a line offset
•
Improved Relation window - Reference finding is faster. There is also a new relation type for functions:
"calls and callers". This shows both in the same outline or graph. You can also copy the graph view to
the Window clipboard. See “Relation Window” on page 91.
•
Maintain backup files per-project, and easily compare with backup versions. Use Tools > Compare with
Backup File
to quickly compare the current file with a backup version. You can also use the File > Open
Backup File
to open an older version of the current file. See “Backup Files” on page 123.
•
Better regular expressions - now supports Perl-compatible and multi-line expressions. Most places that let you enter a regular expression now have a list where you can select the type of RegEx. There are regular and "multi-line" versions of the classic Source Insight regex, and Perl compatible regex.
The multi-line regex types basically match a new-line with the dot (.) character. So for example, .* would match the whole file. And "start.*end" would find everything from "start" to "end" in the file, even across line breaks.
•
Better support for large projects. The virtual memory usage has been improved so that very large projects can fit better into the memory space. Version 3 could suffer from a file read error on the project index files for large numbers of symbols, leading to project corruption. This has been eliminated.
•
Easier project management with multiple users and machines by using a Master File List. A project can have a MFL, which can be a part of your source code repository and shared with other people. It is a
Source Insight 4 User Guide 19
New Features in Version 4
•
Export project source to HTML site. You can use this to export all the files to HTML versions that contain most of the same syntax formatting you see in Source Insight. This basically builds a web site that can
used to browse the project source code. See “Export Project To HTML” on page 198.
•
Browser Mode - Source Insight behaves as a read-only code browser. In this mode you cannot edit your files. Simply clicking on identifiers will jump to definitions like in a web browser. Press Backspace to Go
Back, and press Space with the cursor in a symbol name to jump to its definition. Hold down CTRL
while clicking to make a regular selection. See “Browser Mode” on page 162.
•
Symbol Window pane attached to each source file window now has a collapsible outline view.
•
All new configuration system which keeps all your settings in XML files.
•
Many improvements all over the program!
File Format Changes
Several data files created and maintained by Source Insight have changed in version 4.
•
Project Files - the new extension is
.siproj
for the main project file. All the project data file formats have changed from version 3. You can still open version 3 projects, but they will be converted to the new format.
•
Configuration Files - all configuration settings are now saved in XML files. Because the configuration changed so much, version 3.5 configuration files are not supported.
•
Workspace Files - new extension is
.siwork
. These are not compatible with version 3.
•
Recovery Files - the new extension is
.si_recovery
.
File Storage
Source Insight 4 stores most of its data in <HOMEDRIVE>/users/<user-name>/Documents/Source Insight 4.0
The folders within the "Documents/Source Insight 4.0" folder are as follows:
Clips
Logs
Table 1.1: Folders & Files In User Document Area
Folder Name
Backup
Bookmarks
Projects
Settings
Snippets c.tom file
FileAlias.txt file
Description
Stores file backups for nonproject files.
The "global" bookmarks used in all projects.
Clip storage. See Clips feature.
Log files. Controlled by Options
> Preferences: General
: Logging...
Each project has a data folder inside this folder.
Your configuration settings, themes and layouts.
Code Snippets
C/C++ preprocessor token macros.
Maps file names without extensions to File Types
20 Source Insight 4 User Guide
CHAPTER 2
User Interface
This chapter describes the main Source Insight program window and general information about using different windows available in Source Insight.
The user interface of Source Insight consists mainly of:
•
The main menu and toolbar area at the top.
•
The source file windows that you edit files in.
•
Panel windows, which can dock or float.
Source Insight is a Tabbed-MDI (Multiple Document Interface) application. This means that each source file you open has its own child window contained within the Source Insight application window. In addition, file window tabs appear across the top just below the toolbar area
Source Insight 4 User Guide 21
In the screen shot below, the main Source Insight application window contains the main toolbar at the top, a source file window in the middle, and some panel windows docked to the right side. The symbols declared in the source file appear on the left in a symbol panel.
Below is a typical window layout, showing a source file window, the Relation window, and Context window. The main Source Insight program window, showing a source file window with a symbol
22 Source Insight 4 User Guide
window attached on the left side, and a Relation Window docked to the right edge. The Context window appears docked at the bottom edge.
Source file window for editing and viewing code
Symbol Window: shows symbols defined in each file
Relation
Window: shows references, call trees, and other relationships
Context
Window: automatically shows declarations and other information while you click on things or type
For more information:
See “Relation Window” on page 91.
See “Context window” on page 88.
Source Insight 4 User Guide 23
डाउनलोड
विज्ञापन