The entire process of code blocks installation in ubuntu & codeblocks Shortcut Keys & solves the problem that the debugging terminal cannot be pasted (1) installation steps: 1. install the compiling environment, C library, C ++ library, and Boost library as follows: sudo apt-get install build-essential * may install build-essential. After gdb is installed, sudo apt-get install gdb2. install Code in the Ubuntu Software Center :: blocks IDE3. the debugging component Valgrind of Code: Blocks is used to detect memory leakage: sudo apt-get install valgrind 4. install sudo apt-get install codeblocks-contrib, a software compiled and contributed by peripheral enthusiasts as needed. install wxWidgets Development: (Note: before installation, go to www. wxWid Take a look at the latest version of gets.org) sudo apt-get install libx *. deb sudo apt-get install libwxbase2.8-dbgsudo apt-get install libwxbase2.8-dev sudo apt-get install kernel-dbgsudo apt-get install kernel-dev sudo apt-get install wx2.8-i18n sudo apt-get install wx2.8-docsudo apt-get install wx2.8-examples sudo apt-get install wx-common to use Code:: Blocks, application-> programming-> Code: Blocks IDE. Code: Blocks and wxWidgets are well integrated and almost no additional configuration is required. (2) Common Shortcut Keys: = daily editing = • press Ctrl to roll the wheel, and the font of the Code will become smaller as you wish. • Right-click the editing area and Drag the code to save the trouble of pulling (especially horizontal) the scroll bar. Settings: Mouse Drag Scrolling. • Ctrl + D: copy the current row or selected block. • Ctrl + Shift + C comment out the current row or selected block, and Ctrl + Shift + X uncomment. • Tab indent the current row or selected block, Shift + Tab reduce indentation. • You can drag a selected block to move it to a new position, and press Ctrl to copy it to a new position. • Press Atl and then drag the mouse to partially select (that is, only the characters in a region are selected, and no other characters in their row are included ). • For a larger editing space, F2 and Shift + F2 can hide the Logs & others column and the Management column on the left, respectively. = Automatic completion and abbreviation = 1) Optimize the Code autocompletion function: In Code-completion and symbol browser, • Change 4 in Automatically launch when typed # letter to 2, in this way, two letters are displayed. • Hook 1 to 9 in Keyword sets to additionally include (the keywords in Syntax highlighting... where 1 is the C ++ keyword and 3 is the Doxygen keyword. I once added the wxWidgets class name to 7 and set the corresponding font (), especially nice to read code) • run Delay for auto-kick-in when typing [. :->] Pull to 200 ms, so that you can quickly prompt • Select Case-sensitive match to prevent irrelevant interference. If you want it to help you correct the Case, remove the check box. • In Keyboard short-cuts, change the shortcut key for Edit-> Code complete from Ctrl + Space to Alt +/, because the switch between the former and the Chinese Input Method conflicts, the shortcut key is automatically completed for the words that have been entered (not being entered. 2) Check the Abbreviation column, which defines many abbreviations (which can also be customized). As long as you enter these abbreviations and press Ctrl + J, you can automatically complete common code frameworks, place the cursor in the appropriate place (use | for custom expressions ). Commonly used include guard, class, and switch. 3) If you declare a class, you can right-click in the cpp file, Insert-> All class methods without implementation... you can also use Insert-> Class Method declaration/implementation... to insert a declaration or definition of a method. = Navigation related ==• Ctrl + G arrive at the specified row, ALT + G arrive at the specified file, Ctrl + Alt + G arrive at the specified function (supports the function definition in the header file ), f11 switches the source file and header file. • Ctrl + PageUp arrives at the previous function, and Ctrl + PageDown arrives at the next function. • Ctrl + B add bookmarks. Alt + PageUp and Alt + PageDown can be used to switch between bookmarks. • Ctrl + Shift + B to find matching parentheses. • When looking at the long code, you can right-click and select Folding-> Fold All. Then, you can take full advantage of the Symbol browser in the Management column on the left. • Right-click a variable, function, or macro, and select three menu items starting with "Find, you can go to its declaration, definition, and find all the places where it appears (Press F2 to view it at the Thread Search below ). Others: • details such as indentation and line breaks can be set in General Settings. • Make Code: Blocks always remember your Layout, especially the debug layout, and make good use of the debug toolbar. • Back up C:/Documents and Settings/[your user name]/Application Data/codeblocks/default.conf. In case of Reinstallation, place it in the directory where codeblocks.exe will not lose your configuration. In this way, you can also create Code :: the green version of Blocks. Ctrl + L cut selected line F11 switch source file and header file F10 full screen Ctrl + Shift + B matching press ATL, then drag the mouse, you can achieve partially select Ctrl + B to add bookmarks, you can switch between ALT + PageUp and PageDown bookmarks. Ctrl + G to reach the specified row ALT + G to reach the specified file Ctrl + Alt + G to reach the specified function (supports the function definition in the header file) ctrl + PageUp to the previous function Ctrl + PageDown to the next function ======================== ======== gorgeous split line ================================== === codeblocks in ubuntu looks a little more upscale than that in windows. After the console program is created, I found that the built-in debugging terminal xterm cannot be copied or pasted (I didn't get it out, but I don't know if there are other methods). I found a method to replace the debugging terminal on the Internet, it is to use gnome-terminal in ubuntu as the debugging terminal. After modification, it will work. The specific operation is as follows: Change the debugging terminal: Use gnome-terminal as the debugging terminal. As long as Setting => Environment... ==> General Setting ==> Terminal to lanuch console programs: replace "gnome-terminal-t $ TITLE-x" with "xterm-T $ TITLE-e ". ================================ Lili's line =================== during hospitalization, I haven't published any new things for a long time, so I forgot to step on it .. By the way, after using the ipad, I feel that ios is much more convenient than android, and it is indeed very helpful ~~ That is, the traffic cannot afford to hurt ~~ Ga over