如何更改 CLion 中的默认启动模板?
How do I change the default start template in CLion?
我正在尝试更改 CLion 在主目录中创建每个 c++ 项目时使用的模板。截至目前,
#include<iostream>
//I want "using namespace std;" to be here
int main(){
std::cout << "Hello World!" << std::endl;
return 0;
}
我更希望它只使用标准命名空间而不是将 std:: 放在 cout 和 endl 之前。
我知道这没什么大不了的,但每次我打开一个新项目时都要更改它确实很烦人。
你现在不能这样做 (feature request in tracker to follow). However, such using was removed on purpose.
我正在尝试更改 CLion 在主目录中创建每个 c++ 项目时使用的模板。截至目前,
#include<iostream>
//I want "using namespace std;" to be here
int main(){
std::cout << "Hello World!" << std::endl;
return 0;
}
我更希望它只使用标准命名空间而不是将 std:: 放在 cout 和 endl 之前。 我知道这没什么大不了的,但每次我打开一个新项目时都要更改它确实很烦人。
你现在不能这样做 (feature request in tracker to follow). However, such using was removed on purpose.