Skip to main content

Sublime Text 3 + cscope (windows)

Install Package Control

  • 按下 CTRL+`
  • 貼上
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

Refer to installation_Package_Control

Install cscope

  • 按下 CTRL+SHIFT+P
  • 先輸入 INSTALL PACKAGE ,之後再輸入 cscope,即可安裝完成
  • 產生 cscope.out
    • F:\ovs>cscope.exe -Rbv

螢幕截圖 2014-01-08 17.14.03.png

Refer to cscope plugin source

Usage

  • 按下 **ctrl+**後,根據需求來使用
  • 直接使用 鍵盤操作
  • 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