久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags)

      下面由sublime教程欄目給大家介紹在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags),希望對(duì)需要的朋友有所幫助!

      在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags)

      source insight中有一個(gè)很好用的功能,就是函數(shù)的跟蹤跳轉(zhuǎn),在閱讀別人的代碼的時(shí)候輕松的瀏覽原函數(shù)。我們知道,在使用vim的時(shí)候有個(gè)插件叫ctags,同理,在sublime text中也能是使用ctags實(shí)現(xiàn)相同的功能。

      下面介紹下如何在sublime text中安裝使用ctags:

      1,安裝package control:(如已安裝請(qǐng)忽略)

      (參考https://packagecontrol.io/installation#st3)

      簡(jiǎn)單的安裝方法:

      從菜單 View – Show Console 或者 ctrl + ~ 快捷鍵,調(diào)出 console。將以下 Python 代碼粘貼進(jìn)去并 enter 執(zhí)行,不出意外即完成安裝。以下提供 ST3 和 ST2 的安裝代碼:

      Sublime Text 3:

       import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

      Sublime Text 2:

       import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')

      手動(dòng)安裝:

      可能由于各種原因,無法使用代碼安裝,那可以通過以下步驟手動(dòng)安裝Package Control:

      11.點(diǎn)擊Preferences > Browse Packages菜單

      12.進(jìn)入打開的目錄的上層目錄,然后再進(jìn)入Installed Packages/目錄

      13.下載 Package Control.sublime-package 并復(fù)制到Installed Packages/目錄

      14.重啟Sublime Text。

      Package Control 主文件下載地址:https://github.com/wbond/sublime_package_control

      在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags)

      使用方法:

      快捷鍵 Ctrl+Shift+P(菜單 – Tools – Command Paletter),輸入 install 選中Install Package并回車,輸入或選擇你需要的插件回車就安裝了(注意左下角的小文字變化,會(huì)提示安裝成功)。

      在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags)

      2,下載最新的ctags到非中文目錄,這里,我們推薦c:windowssystem32,ctags可從http://ctags.sourceforge.net/下載,最后更新是在09年,版本5.8;

      下載后解壓ctags.exe到c:windowssystem32目錄下;

      3,在sublime text中的package control install下安裝ctags

      快捷鍵ctrl+shift+p,輸入pci,再在命令行中輸入ctags安裝

      4,配置ctags路徑

      在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags)

      打開ctags的settings-default,并復(fù)制全部代碼,將其粘貼到setting-user中;

      在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags)

      并在以上位置加入你的ctags路徑;

      5,使用,在使用函數(shù)調(diào)轉(zhuǎn)功能前,需要先生成.tags文件,只需在項(xiàng)目文件管理器的項(xiàng)目文件上右鍵點(diǎn)擊Ctags:Rebuild Tags即可(注意,在改動(dòng)文件之后也許重新生成.tags)

      在sublime text中怎么實(shí)現(xiàn)函數(shù)跟蹤跳轉(zhuǎn)(ctags)

      6,所有工作都準(zhǔn)備充分之后,就可以在函數(shù)名上右鍵點(diǎn)擊navigate 頭definition跳轉(zhuǎn)到指定函數(shù)了,返回用jump back;

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)