Sublime Text 3 + cscope (windows)

本文介绍如何在 Sublime Text 3 中安装并使用 cscope 插件,包括安装 Package Control 和 cscope 的步骤,以及如何通过快捷键进行符号查找、定义查找等操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值