C/C++ development tool Clion configuration

C/C++ development tool Clion configuration

Recently I am going to start C/C++ again

Suggested development tools: Clion
is very convenient to use, similar in interface style to Android Studio, and the shortcut keys are basically similar in use.

I. Introduction

For C/C++ programmers, a good compiler is a powerful tool to enable you to study and work efficiently.
Installing a good compiler can make your development work more efficient.

Today I recommend a very good IDE for C/C++ developers, that is CLion, which
is a new cross-platform IDE designed for the development of C/C++ by Jetbrains (Czech Republic).
Designed on top of IntelliJ, it also includes many smart features to increase developer productivity and
improve developer productivity.

To put it simply, if you used XX Studio before, it is absolutely easy to use this Clion now.

2. Tools

In fact, it is very simple, only need an application and an environment tool.

Clion.exe //类似Android Studio
minGW //类似SDK,里面有一系列工具

Environment installation link: https://pan.baidu.com/s/1yxwxbHIn9b7m7wn8WhLEGg Extraction code: 0qap

You can also download it directly from the official website: https://www.jetbrains.com/clion/

3. Installation and activation

Installation, without going into details, select all the options that need to be selected during the installation process, next, next to the end.

Activation, the activation code on the Internet will be invalid after being used, so there is no version cracking for the newer version.

If you can use it for a short period of time, you can use it for free for 30 days.
Long-term use: It is not recommended to spend hundreds of dollars on the official website, you can go to Taobao to have an activation code of 3/5 yuan.

Download the cracked version of the old version: https://pan.baidu.com/s/1pFtnWgflV10_YYsz9UwitA
Extraction code: uzej

4. Shortcut keys

Commonly used shortcut keys

Ctrl + left 						向左箭头 回退 
Ctrl + right						向右箭头 前进 
ALT + 1 							显隐工程栏 
Ctrl + / 							添加或删除注释 
Ctrl + Alt + L 						格式化代码 
Alt + F7 							Find Usages 
Ctrl + R 							替换 
Ctrl + B 							在定义和申明之间跳转 
Ctrl + Shift + Backspace 			回到最后编辑的地方
Ctrl + N 							查找类 
Ctrl + O 							选取需要重写的方法 
Ctrl + F12 							快速查看类成员 
Ctrl + Q 							快速查看文档 
Ctrl + P 							提示参数信息 
Ctrl + H 							查看继承树 
Ctrl + E 							查看最近浏览的文件 
Ctrl + Alt + B 						查看接口、抽象类的实现类
Ctrl + F 							搜索当前文件 注:按Esc,搜索框就会消失 
Ctrl + Shift + F 					搜索整个工程或指定目录 注:连续按两次Esc,搜索框就会消失 
Ctrl + Shift + N 					找文件 
Ctrl + F7 							找到某个类、变量、函数等在文中被使用到的的地方 
Shift + Shift 						全局搜索 
Ctrl + Alt + 7 						查看类、对象、变量使用的地方
Ctrl + Alt + -/+ 					展开折叠当前函数、类 
Ctrl + Shift + -/+ 					展开折叠所有函数、类
Shift + F6 							重新命名变量 
Alt + insert						添加自动代码生成信息(插入set*()/get*()/构造器、equals、hashcode等) 
Ctrl + Shift + space				提示信息(new后直接键入构造器、构造器内提供构造信息)

There is nothing to say about the shortcut keys, which are similar to Android Studio.
I will basically replace them with Eclipse-style shortcut keys, so that you can delete the current line by using Crtl+D.

5. Create a project and debug the program

Here is just a general explanation, if you need to take a closer look, you can read the detailed tutorial.

1. Configuration file

In fact, it is very simple. After installing the Clion program, configure the minGW folder directory.

1
Unzip mingw and configure the directory.

2. Project creation

insert image description here
Very simple to create.

As you can see above, you can create C++/C language projects.

3. Code running

insert image description here

Code operation is also very simple, just like Android Studio.
But no Android device is needed, because no virtual machine is needed.

Detailed online tutorial:
https://blog.csdn.net/qq_44723773/article/details/104698675

start your show

Guess you like

Origin blog.csdn.net/wenzhi20102321/article/details/124854224