sudo pacman -S code
sudo pacman -S avr-gcc
sudo pacman -S avr-libc
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
- Hit
Ctrl+Shift+P
and writeC/C++: EDit Configurations (UI)
- Select
Linux
as your Configuration name - Set your Compiler Path to
/usr/bin/avr-gcc
- Set your IntelliSense mode to
linux-gcc-x86
- Specify your AVR devices under
Compiler arguments
:-mmcu=atmega644
- Click on Advanced Settings and on the
Browse: path
section, write the following:${workspaceFolder} /usr/avr
- Save the configurations