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: 3058
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


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 7 guests