Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

chore: Add VS Code configuration for C++20 IntelliSense

esenginea936de70d928
diff --git a/.gitignore b/.gitignore
index 46660d35b..8483c6d84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,7 +5,11 @@ out/
# IDE
.vs/
-.vscode/
+.vscode/*
+!.vscode/c_cpp_properties.json
+!.vscode/settings.json
+!.vscode/launch.json
+!.vscode/tasks.json
*.vcxproj*
*.sln
.idea/
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 000000000..8cf6a9392
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,26 @@
+{
+ "configurations": [
+ {
+ "name": "Win32",
+ "includePath": [
+ "${workspaceFolder}/src",
+ "${workspaceFolder}/include",
+ "${workspaceFolder}/third_party/glm",
+ "${workspaceFolder}/third_party/glfw/include",
+ "${workspaceFolder}/third_party/glad/include",
+ "${workspaceFolder}/third_party/stb"
+ ],
+ "defines": [
+ "_DEBUG",
+ "ES_PLATFORM_NATIVE",
+ "ES_PLATFORM_WINDOWS",
+ "ES_DEBUG"
+ ],
+ "cStandard": "c17",
+ "cppStandard": "c++20",
+ "intelliSenseMode": "windows-msvc-x64",
+ "compilerPath": "cl.exe"
+ }
+ ],
+ "version": 4
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 000000000..315cb5236
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,12 @@
+{
+ "cmake.configureSettings": {
+ "ES_BUILD_EDITOR": "ON"
+ },
+ "C_Cpp.default.cppStandard": "c++20",
+ "C_Cpp.default.intelliSenseMode": "windows-msvc-x64",
+ "C_Cpp.errorSquiggles": "enabled",
+ "files.associations": {
+ "*.hpp": "cpp",
+ "*.cpp": "cpp"
+ }
+}