From c4dfe8e60b48a6b17ac2d055b0d33ee5d40d9ede Mon Sep 17 00:00:00 2001 From: NeoZng Date: Sun, 13 Nov 2022 15:27:40 +0800 Subject: [PATCH] update path config --- VSCode+Ozone使用方法.md | 18 ++++++++++++++++-- assets/image-20221113152513343.png | Bin 0 -> 5671 bytes 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 assets/image-20221113152513343.png diff --git a/VSCode+Ozone使用方法.md b/VSCode+Ozone使用方法.md index 99b1250..a890e47 100644 --- a/VSCode+Ozone使用方法.md +++ b/VSCode+Ozone使用方法.md @@ -120,7 +120,13 @@ ITM是instrument trace macrocell指令追踪宏单元的缩写,它用于提供 - 安装STM32CubeMX,并安装F4支持包和DSP库支持包 -- 安装VSCode,并安装C/C++,Cortex-Debug,Cortex-Debug: Device Support Pack - STM32F4,Better C++ Syntax,IntelliCode,Makfile Tools,C/C++ Snippets插件 +- 安装VSCode,并安装以下插件: + + - C/C++:提供C/C++的调试和代码高亮支持 + - Better C++ Syntax:提供更丰富的代码高亮和智能提示 + - C/C++ Snippets:提供代码块(关键字)补全 + - Cortex-Debug,Cortex-Debug: Device Support Pack - STM32F4:提供调试支持 + - IntelliCode,Makfile Tools:提供代码高亮支持 ![image-20221112172157533](assets\image-20221112172157533.png) @@ -196,7 +202,15 @@ VSCode常用快捷键包括: ### 编译 -用VSCode打开创建的项目文件夹,**Makefile Tools插件会询问你是否帮助配置intellisense,选择是。**此时就可以享受intellicode带来的各种便利的功能了。我们的项目使用Makefile进行编译,在之前的编译介绍中,以GCC为例,如果需要编译一个文件,要输入如下命令: +为了提供完整的代码高亮支持,需要配置Makefile tools插件的make程序路径,`ctrl+,`打开设置,搜索make path找到设置并填写: + +![image-20221113152513343](assets\image-20221113152513343.png) + +> mingw32-make就是下面介绍的make工具(配合makefile替代手动调用gcc)。这里之所以只要输入mingw32-make而不用完整路径,是因为我们将mingw的bin文件夹加入环境变量了,因此系统会在PATH下自动寻找对应项 + +用VSCode打开创建的项目文件夹,**Makefile Tools插件会询问你是否帮助配置intellisense,选择是。** + +此时就可以享受intellicode带来的各种便利的功能了。我们的项目使用Makefile进行编译,在之前的编译介绍中,以GCC编译器为例,如果需要编译一个文件,要输入如下命令: ```shell gcc your_source_code_name.c -o output diff --git a/assets/image-20221113152513343.png b/assets/image-20221113152513343.png new file mode 100644 index 0000000000000000000000000000000000000000..d3a217acbd4923c6864f30403aba3507f58733c5 GIT binary patch literal 5671 zcmcIoXHZjJw?3$VFM>3Ysz@l(LFv*&0v4Jykrq%49YPN^0TBsZN~Dt)kS?82LRESf zBE9!cKzhIV-h1z#J9B^BZ|43vbM~G!XRozqt>-+?6Y^T~ITZy91pok4FJFLl0N~ma z;(OT5YsBXY=Ql?HVAy^MR?_oK*_!gv(;KNL-!Zdq+ToYxx&~!ha_|H*(>$L@nEmpN z#h8sNRP|$NR}f|IJ+%ksMtHCQ*}S{kqo9JX<|S>s)TQ+aMmIwZLm&UG{eYy!CMEIK zw=QKSQKtH%C^0cgE%coG;@QbYkJsjfY%un?sQ!rA^JDwMK#7T|DJu)hXGL-VFjv<| zUj0{Q_bHu80YK2dnz*?8)Pw{8ZapXh0Dn>%0|02ch7usglC&@YKnXBUtnDrEe+!@O zblzBNOAcBXW&{8^GEa;k9u{S0LK}S+U9!7*8vsTN6y(}>IC-v<{JUpn?mSPpL9pZz zEa3oYoNS{O%iE-G0>H0+)N_NoKYN+S&J=I%l_pr&X`dNduUcWVCs(Q~`(dv-dqxE- zn0i4ZfO$Tvp^4#5DMBdSuOpUtEWt`RbtoVA)JwKy1Dv+rTZl0ZuDnkkEHEUF-;?QomuzjqFjLKs0M}m! zn&QODumzRPNQE`bdD3xEET36NOoO?{aN4n_EUohl%IHZgR@xc9w5osd<>N=louE%C zd_ujw-Rze=Hu!9nhTYFIbv1CpwERh{;&RV!oy*dzwXxzDx*4pfRD70|xTIvHbLs9_ zPQ0^lRwM3Yl?e{sA1}J1-80rCQ}GpFHYEYVqiI_hkPd@(*Wiq@y0M92L2lW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