by malkia · 12y ago · 0 comments
For example adding function class member in the .h or .cpp file, and then adding the other part automatically. Or changing arguments, and little balloon comes up, you pres alt+enter - and gives you choices how to make the changes.
Then switch between header/cpp (right visual studio doesn't have this built-in) and few other things make Qt Creator a very good choice.
(add-hook 'c-mode-common-hook (lambda() (local-set-key (kbd "C-c o") 'ff-find-other-file)))
If the .h is in the same directory as .c/.cpp, then Emacs automatically opens. Otherwise, you prompt for the .h file. Once the .h file is opened, subsequent execution of the command switches between the two files.