Sublime Text: Switch files to different folders

I have opened a C ++ project in Sublime Text

and I am working on a Windows environment. I need to switch between .cpp

and .h

files. There is a Alt+ command Othat can switch these files if they are in the same folder. but my files are placed like this:

  • .h

    in myfolder/include/subfolder/

  • .cpp

    in myfolder/src/subfolder/

The file names are the same, they are just different from each other. I'm using Ctrl+ right now p, but I want one command to do this. Thanks in Advance

+3


source to share


2 answers


This may not be exactly what you want, but here is a workaround to accomplish what you ask: if you download and install the CTags plugin for Sublime

, you can:

  • Create tags with Ctrl+ t, Ctrl+r
  • CtrlThe + t, Ctrl+ twill force you to jump to the definition (from title to source) of what is under the cursor.
  • Ctrl+ t Ctrl+ bto "bounce back" (to the title)


[EDIT]

+1


source


Switch File Deluxe does exactly what you want. It overrides Alt+ O.



0


source







All Articles