Home Download Buy Blog Forum Support

Goto header/source for C/C++

Goto header/source for C/C++

Postby emonkey on Thu Nov 14, 2013 7:05 pm

A feature I use often in IDEs when writing C/C++ is goto header/source when in a .cpp or .h file. Basically it should take the current file name, swap the ending extension with .h or .cpp (and try all header/cpp extensions), and open that file if it exists.

This can likely be done with a plugin, but should probably be standard.
emonkey
 
Posts: 5
Joined: Thu Nov 14, 2013 7:00 pm

Re: Goto header/source for C/C++

Postby mgo on Thu Nov 21, 2013 11:35 pm

Since this feature is

a) specific to a language (or, at least to a specific subset of languages)
b) not that hard to implement

i think might be better to implement it in a plugin.
mgo
 
Posts: 1
Joined: Thu Nov 21, 2013 8:58 pm

Re: Goto header/source for C/C++

Postby jps on Fri Nov 22, 2013 12:45 am

This already exists: Goto > Switch File > Switch Header/Implementation
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Goto header/source for C/C++

Postby emonkey on Wed Nov 27, 2013 3:32 pm

Ah nice.

It would be nice if everything in the menu would appear in the command palette. That is how I was searching for it before and never found it.
emonkey
 
Posts: 5
Joined: Thu Nov 14, 2013 7:00 pm

Re: Goto header/source for C/C++

Postby enhering on Sat Jun 07, 2014 10:03 am

I would go further in this request and ask for a side view with the counterpart. Xcode for Mac has this feature and it is very useful. Every time I select a .cpp, the header of that file automatically shows up on the side view.

Thanks for the great editor. I've been looking for a lightweight replacement for XCODE, but was unable to find, until, a month ago I googled for "what is the best code editor for Mac" and I found your editor. This app is a masterpiece. Thanks a lot.
enhering
 
Posts: 2
Joined: Sat Jun 07, 2014 9:57 am

Re: Goto header/source for C/C++

Postby enhering on Thu Aug 07, 2014 6:35 pm

Is there a plugin to do this? Is it possible to make one?
enhering
 
Posts: 2
Joined: Sat Jun 07, 2014 9:57 am


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 4 guests