当前位置:网站首页>sublime text3设置运行自己的Makefile
sublime text3设置运行自己的Makefile
2022-06-29 09:10:00 【水似冰】
一、Sublime Text3简介
Sublime Text3:一款具有代码高亮、语法提示、自动完成且反应快速的编辑器软件,不仅具有华丽的界面,还支持插件扩展机制,用她来写代码,绝对是一种享受。相比于难于上手的Vim,浮肿沉重的Eclipse,VS,即便体积轻巧迅速启动的Editplus、Notepad++,在SublimeText面前大略显失色,无疑这款性感无比的编辑器是Coding和Writing最佳的选择,没有之一。
二、C/C++必备插件
Package Control管理插件的插件,必备中的必备Ctags跳转必备Terminal当前文件路径打开终端,效率神器BracketHighlighter括号高亮
三、编译与其快捷键设置
Linux下许多项目是用makefile来管理的,是用gcc+make等方式来编译和运行。在sublime_text3中调用自己写的Makefile,显著提升效率。
1、自定义build配置脚本
在sublime text3中,
tools----->build system------>new build system
新建一个配置脚本,比如我取名为rotation.sublime-build:
{
"shell_cmd": "make",
"file_regex": "^(..[^:\n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "/home/work/xRobot_ts_locat/xRobot_ME/trunk",
"selector": "source.c, source.cpp",
"keyfiles": ["Makefile", "makefile"],
"variants":
[
{
"name": "Clean",
"shell_cmd": "make rotation clean"
},
{
"name": "Run",
"shell_cmd": "make rotation"
}
]
}
其中"shell_cmd": "make rotation" 为编译命令。
2、定义快捷键
Preferences----->Key Bindins修改右侧的User设置(左边全部拷贝过来)
修改为:
{
"keys": ["f7"], "command": "build" },
{
"keys": ["ctrl+b"], "command": "build" },
{
"keys": ["ctrl+shift+b"], "command": "build", "args": {
"variant": "Run","select": true} },
{
"keys": ["ctrl+break"], "command": "cancel_build" },
边栏推荐
- 数据可视化:数据可视化的意义
- Wechat applet implements the data listener watch, including the watch that destroys the watch and sub attributes
- General part: cognition, design and best practice of prototype design
- Closed door cultivation (24) shallow understanding of cross domain problems
- Simplicity Studio无法识别新买的JLink v9解决方法
- 数据治理:数据标准管理(第三篇)
- Print service IP setting scheme
- MySQL configuring master-slave databases
- es报错NoNodeAvailableException[None of the configured nodes are available:[.127.0.0.1}{127.0.0.1:9300]
- Go deep into RC, RS, daemonset and statefulset (VII)
猜你喜欢

Closed door cultivation (24) shallow understanding of cross domain problems

User level threads and kernel level threads

CROSSFORMER: A VERSATILE VISION TRANSFORMER BASED ON CROSS-SCALE ATTENTION

Self cultivation (XXI) servlet life cycle, service method source code analysis, thread safety issues

SPI drive of lsm6dsl

zabbix4.4配置监控服务器指标,以及图形页乱码解决

Data governance: data standard management (Part III)

UE4 blueprint modify get a copy in array to reference

【华为认证】HCIA-DATACOM史上最全精选题库(附答案解析)

A 2.5D Cancer Segmentation for MRI Images Based on U-Net
随机推荐
长安链数据存储介绍及Mysql存储环境搭建
Zabbix4.4 configure the indicators of the monitoring server and solve the garbled graphics pages
Data visualization: the significance of data visualization
UE4 material UV texture does not stretch with model scale
Introduction to Chang'an chain data storage and construction of MySQL storage environment
【华为认证】HCIA-DATACOM史上最全精选题库(附答案解析)
1424. 对角线遍历 II
1424. diagonal traversal II
基于keil5自动配置stm32f103标准库的官网freertos移植
監控數據源連接池使用情况
滑块验证代码
Is it safe to open an account for stock speculation? Is it reliable?
长安链GO语言智能合约编写与编译
Please use the learned knowledge to write a program to find out the password hidden in the long string below. The burial point of the password conforms to the following rules:
Print service IP setting scheme
After installing anaconda, you need to enter a password to start jupyterlab
Generic paging framework
linux环境下安装配置redis,并设置开机自启动
KDevelop new project
数据治理:数据治理在数据中台下的解决方案