[OpenSource]_[Make Sublime Text 2 Plugin- C++ Header Jump]

C++头文件跳转Sublime Text 2 插件.

project site: https://github.com/walker-python/JumpToIncludeHeader

Sublime Text 2 Plugins,select include file,then press f12 jump to C++ include file location.

First,copy jump_to_include_header.py to Sublime Text 2.0.2\Data\Packages\JumpToIncludeHeader\jump_to_include_header.py

Second,Click Preferences->Key Binding User,Add follow keys define.

{ "keys": ["f12"], "command": "jump_to_include_header",
    "args":{
      "options":{
        "user_search_path":[".", "include", "src",
        "C:/software/Python27/include"]
      }
    }
  }


Third,you can modify Key Bindings User,set user_search_path for your project need,and modify jump_to_include_header.py sys_search_path for your global need.

Notice,you can execute "echo "#include int main(){}" > t.c; g++ -v t.c; rm t.c" to get g++ header file search path.


你可能感兴趣的:(C++,plugins,SublimeText2,C++头文件跳转)