Search code examples
sublimetextsublimetext3

Create a shortcut to easily open corresponding hpp or cpp files in sublime text?


Say I am in a.cpp. What's the easiest way to set up a shortcut that would open (or would focus) a.hpp?

Something similar to the vim script found here.


Solution

  • Easiest way to this is by using the builtin shorcut: Alt + o.

    See Goto > Switch File > Switch Header/Implementation