ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Cscope

by ameyp ST2/ST3

A Cscope plugin for Sublime Text 2 and 3

Details

  • 2018.11.25.01.36.38
  • github.​com
  • github.​com
  • 10 months ago
  • 29 minutes ago
  • 8 years ago

Installs

  • Total 19K
  • Win 8K
  • OS X 5K
  • Linux 6K
Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6
Windows 1 3 4 3 3 2 0 1 3 0 8 0 0 3 3 2 2 2 1 0 0 4 3 3 3 3 1 0 4 3 2 3 7 1 1 6 3 2 3 3 2 4 10 3 5 5
OS X 1 0 0 2 1 1 1 1 2 2 1 1 0 2 0 2 3 4 1 0 1 1 2 1 1 2 1 0 0 1 1 1 4 0 0 0 0 4 1 1 0 1 0 2 3 0
Linux 0 2 2 3 1 0 1 0 1 0 3 5 0 1 2 4 2 3 2 2 1 2 1 0 1 3 0 1 3 0 3 3 1 1 1 1 2 1 2 1 0 1 1 2 2 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:

  1. Find a given symbol
  2. Find a given function definition
  3. Find functions called by a given function
  4. Find functions calling a given function
  5. Find a given text string
  6. Find a given egrep pattern
  7. Find a given file
  8. Find files #including a given file

This plugin also allows the user to rebuild the Cscope database from inside Sublime Text.

Installation

  1. Install Cscope (a Windows port can be found here)
  2. Customize the cscope executable path as explained in the Configuration section below, if needed.
  3. Generate a cscope database (cscope.out) in the root directory of your project
  4. 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: find-results-new-3

Configuration

If you wish to change the way CscopeSublime behaves, you have two options:

  1. Modify the corresponding setting in the default CscopeSublime.sublime-settings file in the package's directory
  2. Add a setting in your Settings - User file prefixed with CscopeSublime_. For example, to modify the display_outline setting and set it to false, put the line "CscopeSublime_display_outline": false in your settings file.

Keybindings

  • Ctrl/Super + \ - Show Cscope options
  • Ctrl/Super + LCtrl/Super + S - Look up symbol under cursor
  • Ctrl/Super + LCtrl/Super + D - Look up definition under cursor
  • Ctrl/Super + LCtrl/Super + E - Look up functions called by the function under the cursor
  • Ctrl/Super + LCtrl/Super + R - Look up functions calling the function under the cursor
  • Ctrl/Super + Shift + [ - Jump back
  • Ctrl/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.