This time I'm going to say the remaining two tools.
emacs This is a heavyweight editor under Linux, but it's not just an editor, you can look at it as an integrated development environment, which is mentioned in the end of the article. Emacs is designed to be editorial centric, providing support for the shell and other tools, but it's all done in its editing environment. For a character-type editing environment, the first is a lot of shortcuts, this is very different from Windows ' habits, but the point is that all of the actions in Emacs can be done by shortcut keys, and when you completely make it a part of your life, it's highly efficient, of course, Here I would also like to thank the GNU world to make Jay also contributed to the people, oh, no more said.
I spent two days practicing these shortcuts, and then I threw out my Notepad under Windows and installed a Windows version of Notepad.
There are two types of shortcuts in Emacs, one is the CTRL abbreviation C, which represents the shorthand shortcut key, one is ESC, in XEmacs (a variant of Emacs) can be replaced by Alt, representing the full version of the shortcut key form, commonly used shortcut keys are the following:
c-x c-f Open File
c-x c-s save file
c-x s Save all open buffers
c-x o to another window
c-x 1 to maximize the current window
c-x 2 splits the current window into portrait two windows
c-x 3 divides the current channeling into two horizontal windows
esc-x C-set-style can set the habit of C-mode, such as indentation way ah what the
simple bar, hehe, later will mention other, or that sentence, you know more about tools, your efficiency will be higher. The foreigner regards Emacs as a kind of document to see, visible its influence, the domestic also a book about it like what is called (Second Edition), the name forgets, is good, I just see that study. Finally, there are a lot of people in another editor VI, it is a powerful tool, but I have not used, so can not be compared.
The last one is GDB, the program debugging tool in character mode. Why use character mode instead of graphics mode, or that sentence, not all Linux can support graphics mode, but all Linux support this. Although there are some debugging tools in the graphics mode, you may know what you need most when you have finished reading the final instructions of this article. Remember a person said a word, if you are not happy, you do not know how to find music, hehe. Well, say a gdb bar. Open GDB First, then open the executable program you want to debug with the Open command, provided your program uses the-G parameter to add debug information at compile time. Then run the program by running; use Kill to terminate the program, to set the view with watch, to set breakpoints with the break, here to explain, you can use the file: line number form, or file: function form, for C + +, you can use class Name: member function form To continue running with a continue, step into, step into, and not enter the inside of a function. There are many other commands that are most commonly used, and that's all.
See here you might say that this looks a lot worse than the development environment under Windows, and we need to switch back and forth between different applications. No, it's not like that. These four tools are grouped together under Linux to form a powerful integrated development environment that allows you to perform all operations in a single program, and, by the way, their binders are Emacs, using esc-x compile to compile files in the current working directory. The program automatically opens the window to display the results of the compilation. If there is a mistake with c-x ' (~ without shift that word) you can specify the wrong position; You can debug the program using Esc-x GDB, which means that when you use it for debugging, when you break the breakpoint, Emacs automatically finds the file. , and point to the current line, like VC, OH, if you want to execute the shell, you can use the Esc-x shell to do this, of course, it can also open other shells, if you want to version of the tool Emacs can integrate a tool called RVs, no use, sorry, I've been using CVS. With such a powerful tool, you need any integrated development environment, I think still need, such as CBX, oh, then why do we have these, because not all Linux have CBX, oh, I do not want to say the third time. Today is the bar, hehe, the following also say what Ah, there is a need to tell me.