Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the "Programmer shortcuts" in emacs?

I would like to know what are all the programmer-useful shortcuts that exists in emacs.
I come from a netbeans background and I am trying to make myself comfortable with emacs -text only environment. So I am looking at shortcuts for "refactoring" the code, "auto-completion", "go to definition" etc.

How can all these be achieved in emacs ? What are other programmer-useful shortcuts ?

I'll be using emacs basically for LAMP, javascript, C, C++.

ps - you can safely assume that I know how to open a file, save a file, navigate and whatever is in the tutorial in emacs.

like image 381
Shrinath Avatar asked Feb 14 '11 07:02

Shrinath


1 Answers

For auto-completion, use etags with M-xtags-search or M-xetags-select-find-tag. I use macros often to do repetitive tasks. C-x(<string of useful tasks>C-x). Also, M-xalign-regexp to beautify the code and make it more readable.

You should find most of the most used features by Emacs users in this question's answers here at Stackoverflow.

like image 200
vpit3833 Avatar answered Sep 25 '22 01:09

vpit3833