Cscope
A Cscope plugin for Sublime Text 2 and 3
Details
Installs
- Total 21K
- Win 9K
- Mac 6K
- Linux 7K
Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 1 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
NOTICE
Looking for a new maintainer for CscopeSublime! Both of our current maintainers are no longer able to contribute actively to this plugin. If you care about CscopeSublime and would love to see it taken care of as much as we would, please reach out to us and let us know via an issue report.
Alternately, here are a list of forks of this repo that might perhaps be actively maintained: https://github.com/ameyp/CscopeSublime/network/members
Cscope
A plugin to use Cscope for code navigation from inside Sublime Text 2 and 3.
Features
This plugin supports the majority of the functionality offered by Cscope, namely:
- Find a given symbol
- Find a given function definition
- Find functions called by a given function
- Find functions calling a given function
- Find a given text string
- Find a given egrep pattern
- Find a given file
- Find files #including a given file
This plugin also allows the user to rebuild the Cscope database from inside Sublime Text.
Installation
- Install Cscope (a Windows port can be found here)
- Customize the cscope executable path as explained in the Configuration section below, if needed.
- Generate a cscope database (cscope.out) in the root directory of your project
- Check out the repo under your “Packages” directory or install via Package Control and restart Sublime Text.
Screenshots
Here's what the symbol lookup results buffer looks like:
Configuration
If you wish to change the way CscopeSublime behaves, you have two options:
- Modify the corresponding setting in the default CscopeSublime.sublime-settings file in the package's directory
- Add a setting in your
Settings - User
file prefixed withCscopeSublime_
. For example, to modify thedisplay_outline
setting and set it tofalse
, put the line"CscopeSublime_display_outline": false
in your settings file.
Keybindings
Ctrl/Super + \
- Show Cscope optionsCtrl/Super + L
Ctrl/Super + S
- Look up symbol under cursorCtrl/Super + L
Ctrl/Super + D
- Look up definition under cursorCtrl/Super + L
Ctrl/Super + E
- Look up functions called by the function under the cursorCtrl/Super + L
Ctrl/Super + R
- Look up functions calling the function under the cursorCtrl/Super + Shift + [
- Jump backCtrl/Super + Shift + ]
- Jump forward
Notes
The plugin will recursively search for the cscope database in parent directories of the currently open file until it either finds the database or reaches the root directory.
License
This whole package is distributed under the MIT license.