Sublime Forum

GotoCppInclude

#1

Hello,

I wrote my first plugin as a learning exerciese. There may be existing plugins that provide this functionality, but I wanted to do it anyway :smile:

The plugin allows you to set an include file search path, then open C/C++ #include files from source code that are under the cursor. It works for both library header files (#include <header.h>) and local header files (#include ā€œheader.hā€). The default mappings are alt-d and ctrl-mousebutton3

You can find the plugin here:
github.com/lukalease/GotoCppInclude

Feedback is welcome. I hope somebody else finds it useful.

0 Likes

#2

There is a plugin that does this kind of stuff: github.com/SublimeText/Open-Include
But iā€™m not sure if/how it works with cpp though :smiley:

0 Likes

#3

[quote=ā€œiamntzā€]There is a plugin that does this kind of stuff: github.com/SublimeText/Open-Include
But iā€™m not sure if/how it works with cpp though :smiley:[/quote]

I looked at that plugin first, but it was not immediately obvious if it would work for C/C++ include files like I wanted. I didnā€™t try too hard since I wanted to write a plug-in :smile:

0 Likes