vscode + ROS 配置快捷编译

一、安装插件

二、配置 task.json文件

Ctrl+Shift+B ,在 .vscode/tasks.json 文件配置成如下配置如下:

json 复制代码
{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "catkin_make",
            "args":[
                "--directory",
                "./"
            ],
            "problemMatcher":[
                "$catkin-gcc"
            ],
            "group": {"kind": "build","isDefault": true
            },
            "label": "catkin_make:build"
        }
    ]
}

其中: "./" 表示指向工程目录

cpp 复制代码
  "args":[
      "--directory",
      "./"
  ],

配置完成后,按 Ctrl+Shift+B 即可触发catkin_make编译。

相关推荐
Leon Cheng20 小时前
Vue3 + Monaco Editor 实现智能变量编辑器:隐藏花括号的魔法
编辑器
你知道“铁甲小宝”吗丶20 小时前
VSCode使用Claude Code
vscode·ai·ai编程
浪潮IT馆21 小时前
在 VSCode 中调试 JavaScript 的 Jest 测试用例
javascript·ide·vscode
椰汁菠萝21 小时前
VSCode中properties文件读写
ide·vscode·properties
weixin_550083151 天前
QTdesigner配置在pycharm里使用anaconda环境配置安装成功
ide·python·pycharm
dvlinker1 天前
C/C++编程开发工具及实用软件推荐
ide·vscode·visual studio·qt creator·c/c++·source insight·编程工具
Kazefuku1 天前
VS Code 和Visual Studio:简单易懂的区别
ide·windows·visual studio
gsgbgxp1 天前
通过tailscale配置ssh远程实现wsl系统VSCode编程
vscode·深度学习·ubuntu·ssh
Boxsc_midnight1 天前
【一款支持Ollama本地部署的Visual Studio 2022 编程助手插件的编译和生成之路】解决打包安装问题
ide·visual studio·vs插件
-凌凌漆-1 天前
vscode运行npm报错,npm : 无法加载文件 xxxxx/npm.ps1,因为在此系统上禁止运行脚本。
ide·vscode·npm