vscode怎么写c语言代码,c语言编译器vscode

首页 > 经验 > 作者:YD1662022-11-14 04:45:19

vscode怎么写c语言代码,c语言编译器vscode(5)

点击,然后这里选Others,出现task.json,如下;

"version": "2.0.0", "tasks": [ { "label": "echo", "type": "shell", "command": "echo Hello" } ]

修改如下;

"version": "2.0.0", "tasks": [ { "label": "build hello", "type": "shell", "command": "g ", "args": [ "-g", "hello.cpp", ], "group":{ "kind": "build", "isDefault": true } } ]

回到hello.cpp文件,按F5。成功运行编译。

vscode怎么写c语言代码,c语言编译器vscode(6)

5.还有就是发现中文控制台显示乱码,

vscode怎么写c语言代码,c语言编译器vscode(7)

只要点击右下角utf-8,

vscode怎么写c语言代码,c语言编译器vscode(8)

上一页123下一页

栏目热文

文档排行

本站推荐

Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.