在VS Code打开的文件夹或工作空间中忽略某些文件和文件夹
-
使用快捷键Ctrl+, 打开Setting窗口。
-
可以看到有三个级别的Settings,我想针对本工作空间进行设置,所以选择Workspace。
-
选择右上角的 Open Settings(JSON) 图标。
-
添加需要忽略的文件或文件夹。
"settings": { "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true, "**/Thumbs.db": true, "Projects/STM32H747I-DISCO/Applications/PeopleCounting": true, "Projects/STM32H747I-DISCO/Applications/USB_Webcam": true, "Projects/STM32H747I-DISCO/Applications/FoodReco_MobileNetDerivative": true, "Projects/STM32H747I-DISCO/Applications/PersonDetection/Google_Model": true, "Projects/STM32H747I-DISCO/Applications/PersonDetection/MobileNetv2_Model/EWARM": true, "Projects/STM32H747I-DISCO/Applications/PersonDetection/MobileNetv2_Model/MDK-ARM": true, "Drivers/CMSIS/Device/ST/STM32H7xx/Source/Templates": true, "Drivers/CMSIS/DSP/DSP_Lib_TestSuite/Common/platform": true, } }