Clion common functions

 1. Create a new file and add item

Open CMakeList.txt, adding such a paragraph, then click the Reload changes figure

add_executable (project file name)

2, file rename, move, copy, remove items

Right-click the file you want to rename ---> Refactor ----> Rename

Right-click the file you want to move ----> Refactor ----> Move File

Right-click the file to be copied ----> Refactor ----> Copy File

Right-click the file to remove (not delete files) ----> Refactor ----> Safe Delete

3, set the root directory of the project (to solve the relative position of the file read and write invalid)

 Run ----> Edit Configurations -----> select the need to set the root directory of the project ----> Work director ----> select the root directory files are located

 

4, Quick Start, debug, select the implementation of the project

Quick Start: shift + F10

Quick Start debug: shift + F9

Select the start of the debug project: F9

Item selection performed: selecting the position shown in FIG.

5, set code specification (setting code own wind)

Click on this icon

Edit ----> Code Style ---> C / C ++ (choose language) ----> are many, you can own one by one test, will show the effects of changes to the right

6, students split screen

Right-click the file to be allocated as representing two vertical and right and left split screen split-screen

7, set the theme, background images and transparency

Theme settings: Settings ---> Appearance & Behavior ---> Appearance ----> Theme

Background image settings: Settings ---> Appearance & Behavior ---> Appearance ----> Backgroud Image ----> Image ----> select background image

Background image transparency settings: Settings ---> Appearance & Behavior ---> Appearance ----> Backgroud Image ----> Opacity

 

Guess you like

Origin www.cnblogs.com/winter-bamboo/p/11403087.html