-
Notifications
You must be signed in to change notification settings - Fork 10
Home
CodeAtlas is a plugin of SublimeText, which allows one to explore the call graph conveniently. The plugin uses the code analysis tool Understand (https://scitools.com) to perform symbol/reference query task.
Following (but not limited) languagues are supported: Python,C/C++,Java.
- Find callers/callees of a function.
All key shortcuts below can be used in both Sublime Text and the visualization window.
Press Alt+G to show the function/variable/class under the cursor in CodeAtlas.
Press Alt+V to show callees of current function.
Press Alt+C to show callers of current function.

- Find Members of a class. Press Alt+M the find members of a class.
Each member variable is represented as a pink disc in the atlas.
Each class is represented as a blue disc. Also, Size of the disc indicates lines of the class.
- Find references of a variable/function. Press Alt+U the find all references.
- Explore call graph.
Press Alt + ↑/↓/←/→ to explore through the graph.
You can select a nearby node(function/class/variable) or edge(function call/variable definition/function definitio) by pressing Alt + ↑/↓/←/→. The most likely node/edge will be selected and Sublime Editor will jump to corresponding code.
- Delete an unused function/class/variable
Press Alt+Delete to delete current selected function/class/variable.
- Find all call paths between two nodes.
In the visualization window, using mouse middle button to drag function A to B, then all call paths from function A to B will be shown.
- Use mouse to select/drag/zoom in the visualization window directly.
- Install Understand (home page https://scitools.com)
- Install Sublime Text (home page http://www.sublimetext.com/)
- In Sublime Text, press Preferences->Browse Packages go to package folder.
- Unzip and place the plugin in the package folder.
- Replace Packages/CodeAtlas/CodeViewPy/understand.pyd with the one in the Understand folder(usually in SciTools/bin/pc-win32/python/understand.pyd)
- Open Understand and create a database for your project.
- After finish the new project wizard, a database file will be generated.
- Close Understand and restart Sublime Text, then press "Start Atlas" in the context menu. Then the visualization window will be shown.
- Press Open DB in the visualization window, then find the *.udb file generated before.
- Now you can use the key shortcuts above to explore the code!





