初始化模板项目
This commit is contained in:
		
							
								
								
									
										20
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								.devcontainer/devcontainer.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
{
 | 
			
		||||
	"name": "Embedded DevContainer",
 | 
			
		||||
	"build": {
 | 
			
		||||
		"dockerfile": "Dockerfile",
 | 
			
		||||
		"context": ".."
 | 
			
		||||
	},
 | 
			
		||||
	"remoteUser": "vscode",
 | 
			
		||||
	"customizations": {
 | 
			
		||||
		"vscode": {
 | 
			
		||||
			"extensions": [
 | 
			
		||||
				"ms-vscode.cpptools" // C/C++ 调试支持
 | 
			
		||||
			],
 | 
			
		||||
			"settings": {
 | 
			
		||||
				"platformio-ide.useBuiltinPython": false, // 使用容器内 Python
 | 
			
		||||
				"platformio-ide.customPATH": "/usr/local/bin"
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	"postCreateCommand": "platformio upgrade --dev && pio init && echo '环境初始化完成'" // 初始化 PlatformIO
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user