2014年10月23日 星期四

Sublime Text 3 + Toks modified for Tiano / EDK2 codebases

1. Get your Sublime Text 3, referred as ST3.


2. Follow the link below to add Package Control.


sublime.wbond.net/installation


The image below shows the successful result of the opreation.



3. Access "Package Control" through the sub menu shown as below.


4. Enter 'I' and select "Package Control: Install Packages", then enter "Toks".


5. Edit your Toks settings:
"Data\Packages\Toks\SublimeToks.sublime-settings" under the ST3 folder, and add these filters to your "filename_extensions":
"bat|c|cpp|h|hh|asm|asi|inc|asl|aslc|vfr|uni|dec|dsc|fdf|inf|ini|template|env|makefile"

"Data\Packages\Toks\SublimeToks.py": Line 139 under the ST3 folder.

original:
match = re.match(re.escape(self.commonprefix) + '(.+:\d+:\d+) (\S+) (\S+) (\S+) \S+', line)

modified:
match = re.match('(.+:\d+:\d+) (\S+) (\S+) (\S+) \S+', line)


6. Add your project folder into project, and save your project files


7. Press CTRL + L, CTRL+I to tag your codebase. The tag file will be at the same directory in which the project file is.

8. Read Data\Packages\Toks\README.md under the ST3 folder as a manual.

2 則留言:

  1. Matt大大,我是Insyde Bryan,請問你有在sublime上裝過Gtag嗎?

    回覆刪除
  2. 請問有辦法直接開啟搜尋結果的位置?

    回覆刪除