如何评价 jetbrains golang ide的新 C/C++ IDE CLion

A&power toolFor a power language
On-the-fly
code analysis
With CLion, you can create code that's beautiful and correct at the same time. Potential code issues are identified instantly...
...and fixed as you type! Be sure all the proper changes are handled automatically by CLion.
CLion also performs Data Flow analysis to find out all the cases of the unreachable code, infinite recursion and more.
Integrated debugger
Investigate and solve problems with ease through CLion's friendly debugger user interface with GDB or LLDB available as a backend.
Attach to local processes or debug remotely. Check disassembly view when sources are not available.
Inline variable view
Get the complete view of your project with variable values shown right in the editor as you debug.
Watches and variables view
Inspect the state of all the variable for a chosen function in the stack frame, or monitor variable/expression changes during the debug session.
Evaluate expression
Evaluate result of a function call or some complicated expression when stop at some execution point in the debug session.
Fully Integrated C/C++ Development Environment
as a project model, CLion handles your changes in CMake files automatically, using all the information from there during code editing and refactorings.
Embedded terminal
Run any command without leaving the IDE: locally or remotely using the SSH protocol. Depending on your platform, you can work with a command line prompt, Far, powershell, bash, or other tools.
The complete experience
Popular VCS supported out of the box include Subversion, Git, GitHub, Mercurial, CVS, Perforce (via plugin), and TFS.
CLion also seamlessly integrates with Google Test and Catch frameworks and supports Doxygen.
Keyboard-centric approach
To help you focus on code and raise your productivity, CLion has keyboard shortcuts for nearly all its features, actions and commands.
Vim fans are welcome to install the .
New Features
What’s New in CLion 2017.2
Check your code: Clang-Tidy&integration
CLion 2017.2 comes with Clang-Tidy integration which provides Clang-Tidy checks and quick-fixes bundled into CLion.
Better C++ support
CLion 2017.2 is focused on C++ parser correctness and C++ code analysis fixes. It also adds C++17 to the list of standards in the New Project wizard.
Don’t wait, be productive
With special focus on IDE performance, CLion 2017.2 comes with a set of cancelable actions such as CMake reload and Go to navigation actions.
Testimonials
customers say
Prof. Dr. Rodriguez-Losada,
biicode CTO
CLion is fantastic, finally the C++ high quality cross-platform IDE with CMake as first class build system we were waiting for.
A product that was impressive during the EAP versions. I’m looking forward to seeing where JetBrains will take it from here. Considering the quality of their other products the sky is the limit.
Tommy Andersen
Schilling A/S
@alex_braidwood
I would like to take this moment to say, CLion has quickly become my favorite IDE for C/C++. It just works. #jetbrains #CLion
Really liking @clion_ide for a new C++ project: lightweight, responsive, useful, good integrations. And most important, great vi emulation.
Jonathan Dursi
Companies worldwide trust JetBrains IDEs. Join the club!
Free 30-day trial
Check out other C/C++&tools
from JetBrains
Pick up the right tool for C and C++ development depending on your preferred toolchains and other requirements:25746人阅读
JetBrains终于放出来c++的IDE了。目前是60天的预览版,下载:
CLion的主要亮点:
windows下linux程序的IDE。别纠缠vs是不是王中之王,用vs打开srs代码错误就一坨一坨的,没法正常使用。可以忽略编译,当作编辑器使用。windows下的linux代码无法编译过,mingw有时也不好使,但是CLion可以当作编辑器使用。支持基本功能:函数跳转,类跳转,头文件跳转,hpp和cpp直接跳转,智能提示,没用的宏定义的提示。支持FindUsage:函数或者类在什么地方使用了,这个功能对于代码阅读和修改很有用。支持Refactor:Rename,Extract,Move,ChangeSignature,PullMemberUp/Down众多减少苦力的功能。还有个牛逼的东西,选中后按CTRL+F,自动高亮。这个是非常非常常用的功能,比notepad++好。upp就是没有这个愁死我了。InspectCode,代码检查,分析代码潜在的问题,譬如我检查srs有:一千个拼写问题,没有用到的代码2百行,类型检查1百个,声明问题2个。 术业有专攻,JetBrains的IDE做得非常之用心,只要CLion出来,我就果断抛弃upp。
使用方法:OpenProject,选择srs的trunk目录下的CMakeLists.txt,点OK即可。
linux版的,在centos下也挺好用,需要下载cmake2.8:和gdb:,然后指定toolchain为:/usr/local/bin/cmake和/usr/local/bin/gdb,因为centos6默认的cmake和gdb都太老了。
另外,还需要java虚拟机,可以下载jdk7之类:jdk-7u45-linux-x64.tar.gz,然后编辑环境脚本:sudo vi /etc/profile,在文件尾部加入:
JAVA_HOME=/usr/local/jdk1.7.0_45
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/bin/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
假设jdk7解压在/usr/local/jdk1.7.0_45的话。解压clion后,执行bin/clion.sh脚本即可,在centos图形界面下执行。
Windows下面安装CLion很简单,有安装包,安装完了直接导入就可以了。Linux下需要安装一些依赖包,对于linux程序员也不是难事。如果不太明白,我一步一步的教你,看下面的图说话:
安装Centos6开发版
选一个图形界面版本,centos6的development版本,或者带KDE桌面之类都可以。
如何安装Centos6的Development版本,就问度娘去,一大把。
可以去oracle的官网下载jdk7或者其他jdk,要下载linux版本的,譬如:jdk-7u45-linux-x64.tar.gz,解压到目录:
(sudo mv jdk-7u45-linux-x64.tar.gz /usr/local && cd /usr/local && sudo tar xf jdk-7u45-linux-x64.tar.gz)然后,修改环境变量:
sudo vi /etc/profile
在文件结尾输入以下内容:
JAVA_HOME=/usr/local/jdk1.7.0_45
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=.:$JAVA_HOME/bin/dt.jar:$JAVA_HOME/lib/tools.jar
export JAVA_HOME
export PATH
export CLASSPATH
这样jdk就安装好了。可以立刻执行以下语句生效配置:
source /etc/profile
这样执行java就找到了。
CLion下载后解压就可以用了,去官网下载一个linux版本的:
使用方法:
tar xf clion-138.1965.18.tar.gz
在图形界面执行脚本即可以启动:
即执行如下命令:
cd ~/tools/clion-138.1965.18/bin/
./clion.sh
选完风格和界面,设置toolchain,即编译环境时,发现centos6的cmake和gdb都不认识,版本太老了。因此先编译这两个东西。
编译cmake2.8和gdb7.7
下载cmake2.8源码和gdb7.7,参考cmake2.8:和gdb:,譬如:
tar xf cmake-2.8.12.2.tar.gz && cd cmake-2.8.12.2 && ./configure && make && sudo make install
tar xf gdb-7.7.tar.gz && cd gdb-7.7 && ./configure && make && sudo make install
然后重新启动cliion,或者把cmake和gdb的路径改改,改成/usr/local/bin/cmake和/usr/local/bin/gdb,就可以识别了:
cmake和gdb都识别后,就可以编译和调试srs了。
导入SRS的目录,选择打开工程(OpenProject):
找到CMakeLists.txt文件后打开(需要点那个文件才行):
设置CLion,显示行号:File/Settings/Editor/Editor/Appearance/Show line numbers,勾上这个。
打开文件:trunk/src/main/srs_main_server.cpp,设置断点在main函数:
然后设置工作目录和启动参数,Run/EditConfigurations...;
设置目录为srs的当前目录,以及配置文件:
然后编译和启动调试,就可以看到断点了,可以在其他地方设置断点之类。
CLion的主要亮点:
windows下linux程序的IDE。别纠缠vs是不是王中之王,用vs打开srs代码错误就一坨一坨的,没法正常使用。可以忽略编译,当作编辑器使用。windows下的linux代码无法编译过,mingw有时也不好使,但是CLion可以当作编辑器使用。支持基本功能:函数跳转,类跳转,头文件跳转,hpp和cpp直接跳转,智能提示,没用的宏定义的提示。支持FindUsage:函数或者类在什么地方使用了,这个功能对于代码阅读和修改很有用。支持Refactor:Rename,Extract,Move,ChangeSignature,PullMemberUp/Down众多减少苦力的功能。还有个牛逼的东西,选中后按CTRL+F,自动高亮。这个是非常非常常用的功能,比notepad++好。upp就是没有这个愁死我了。InspectCode,代码检查,分析代码潜在的问题,譬如我检查srs有:一千个拼写问题,没有用到的代码2百行,类型检查1百个,声明问题2个。 术业有专攻,JetBrains的IDE做得非常之用心,只要CLion出来,我就果断抛弃upp。
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:543146次
积分:7756
积分:7756
排名:第2639名
原创:239篇
转载:11篇
译文:10篇
评论:259条
(2)(7)(10)(2)(1)(1)(1)(2)(1)(3)(1)(9)(1)(2)(3)(4)(5)(1)(3)(1)(1)(9)(1)(5)(6)(1)(2)(2)(1)(2)(2)(5)(7)(3)(17)(8)(3)(3)(10)(4)(1)(3)(15)(12)(11)(1)(3)(13)(9)(9)(2)(4)(4)(1)(3)(2)(2)(5)(1)(2)(2)(1)(2)

我要回帖

更多关于 clion ide 的文章

 

随机推荐