Coder Social home page Coder Social logo

cscopesublime's Introduction

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

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 + L``Ctrl/Super + S - Look up symbol under cursor
  • Ctrl/Super + L``Ctrl/Super + D - Look up definition under cursor
  • Ctrl/Super + L``Ctrl/Super + E - Look up functions called by the function under the cursor
  • Ctrl/Super + L``Ctrl/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.

cscopesublime's People

Contributors

ageekymonk avatar ameyp avatar blockbomb avatar julianchurchill avatar nh2 avatar squary avatar vanrijn avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.