1.错误,运行python脚本报错
SyntaxError: Non-ASCII character '\xe5' in file /home/rosmelodic/catkin_ws/src/hellow_vscode/scripts/hello_vscode_p.py on line 3, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
解决:程序最前面不光加(如果是noetic,python要改为python3)
#! /usr/bin/env python
还要加
# -*- coding: UTF-8 -*-
2.vscode终端字间距过大
文件→首选项→设置
搜索 Terminal.integrated.fontFamily
在输入栏输入 consolas ,解决。
3.vscode编写c++或python后通过ctrl+alt+b进行catkin_make
修改tasks.json文件
- {
- // 有关 tasks.json 格式的文档,请参见
- // https://go.microsoft.com/fwlink/?LinkId=733558
- "version": "2.0.0",
- "tasks": [
- {
- "label": "catkin_make:debug", //代表提示的描述性信息
- "type": "shell", //可以选