【求助】Linux下Sublime Text 3编写C++如何连接头文件源文件
sublime吧
全部回复
仅看楼主
level 1
将C++程序分割为头文件*1+源文件*2之后如何使使它们互相关联?如何想像Visual Studio一样能够插入头文件源文件?
还想请教一下,如下图所示的这种Sidebar里的header source文件夹是Sublime自己提供的分类还仅仅是手动创建的文件夹?
2017年03月08日 17点03分 1
level 1
没传上去的“下图”在这里..........
最后想追问一下为什么自己编写的Snippet无效?手动到Tools -> Snippets里面倒是可以加入代码段落的。
代码如下:
<snippet>
<content><![CDATA[
#include <iostream>
#include <sstream>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#define pi (acos(-1.0))
using namespace std;
int main(int argc, char const *argv[])
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>#head</tabTrigger> -->
<!-- <description>C/C++ header file</description> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.c, source.c++</scope> -->
</snippet>
刚刚入门没多久,问题实在有点多,跪求大神们!
2017年03月08日 17点03分 2
1