5 Sept 2019

Using Visual Studio Code for AVR (macOS)

Setup IntelliSense

1. Open a project's folder as Workspace in VS Code.
2. Install C/C++ Extension
3. Create a folder .vscode in the project's folder.
4. Place a file c_cpp_properties.json in the .vscode folder

Check documentation here or try the example project.

{
"configurations": [
{
"name": "Mac",
"includePath": [
"/usr/local/include",
"/usr/bin/gcc",
"/Users/usernamefolder/Library/avr-toolchain/avr/include",
"${workspaceRoot}"
],
"defines": [],
"intelliSenseMode": "${default}",
"browse": {
"path": [
"/usr/local/include",
"/usr/bin/gcc",
"/Users/usernamefolder/Library/avr-toolchain/avr/include",
"${workspaceRoot}"
]
},
"compilerPath": "/usr/bin/gcc",
"cStandard": "${default}",
"cppStandard": "${default}"
}
],
"version": 4
}

No comments:

Post a Comment

Popular Posts