Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open include files in emacs as you can in msvc (visual c++)

MSVC visual c++ allows you to right click on an #include directive header file (.h) and select to "open document". This makes browsing source code a breeze as it turns an entire source code tree basically into a hyperlinked website. Is this convenience available with emacs? Is there another apparatus that allows browsing source code, any code you write, any project create, so automatically? Does Xcode have it? Does eclipse? Does anything?

like image 349
user108754 Avatar asked Jan 18 '26 18:01

user108754


1 Answers

C-c C-o, which runs the command ff-find-other-file, is what you are looking for. It will open the included file when the point is on the #include line.

Googling for emacs code browsing also reveals

  • ECB (Emacs Code Browser)
  • How can I best do source code browsing inside Emacs?
  • code browsing, refactoring, auto completion in Emacs
like image 77
sds Avatar answered Jan 20 '26 21:01

sds