Recommended settings for VS Code - flutter-tizen/flutter-tizen GitHub Wiki
App developer
- Install the Dart and Flutter extensions.
- Enable Format on Save (
editor.formatOnSave
) in the VS Code settings.
Plugin developer
- Install the Dart and C/C++ extensions.
- Open the VS Code settings (JSON) by pressing
Ctrl
+Shift
+P
and typingPreferences: Open User Settings (JSON)
. - Customize the default settings of the C/C++ extension as follows:
"C_Cpp.default.cppStandard": "c++17", "C_Cpp.default.includePath": [ "${workspaceFolder}/**", "[SDK_PATH]/flutter/bin/cache/artifacts/engine/tizen-common/**", "[SDK_PATH]/flutter/bin/cache/dart-sdk/include/**", "${HOME}/tizen-studio/platforms/tizen-5.5/wearable/rootstraps/wearable-5.5-device.core/usr/include/**", ]
"[SDK_PATH]/flutter/.../**"
: Contains common engine and embedder headers. Replace[SDK_PATH]
with your own path to the flutter-tizen installation directory.${HOME}/tizen-studio/.../**"
: Contains Tizen API headers. You can adjust the path as necessary iftizen-studio
is installed in a different location or if you want to use a different rootstrap.
- Alternatively, if you want to customize the settings of individual folders in the workspace, press
Ctrl
+Shift
+P
and typeC/C++: Edit Configurations (JSON)
to openc_cpp_properties.json
.
Embedder developer
- Install the C/C++ extension.
- Compile the embedder for arm and make sure the
src/out/tizen_arm/compile_commands.json
file has been generated. - Add the root folder (
embedder
) to the workspace. - Press
Ctrl
+Shift
+P
and typeC/C++: Edit Configurations (JSON)
to openc_cpp_properties.json
. - Configure the properties in the JSON file as follows:
"includePath": [ "${workspaceFolder}/src", "${workspaceFolder}/src/flutter/shell/platform/common/public" ], "compileCommands": "${workspaceFolder}/src/out/tizen_arm/compile_commands.json", "cppStandard": "c++17",
- To disable code analysis for third-party dependencies and sysroot files, open the VS Code settings (JSON) and add the following properties.
"C_Cpp.files.exclude": { "/usr/include/**": true, "**/embedder/src/third_party/**": true, "**/embedder/src/sysroot/**": true },