36 lines
889 B
YAML
36 lines
889 B
YAML
|
---
|
||
|
# Common/VSCode: Install and Configure VS Code - ArchLinux Version
|
||
|
|
||
|
# Install Visual Studio Code and Set Basic Configuration
|
||
|
- name: vscode - Basics
|
||
|
block:
|
||
|
- name: vscode - Basics - Install
|
||
|
package:
|
||
|
name: "{{ packages }}"
|
||
|
state: present
|
||
|
vars:
|
||
|
packages:
|
||
|
- visual-studio-code
|
||
|
- name: vscode - Basics - Copy global settings
|
||
|
copy:
|
||
|
src: "{{ role_path }}/files/vscode-settings.json"
|
||
|
dest: ~/.config/Code/User/settings.json
|
||
|
when: user_vscode == true
|
||
|
|
||
|
|
||
|
# VS Code - C/C++ Development Tools
|
||
|
- name: vscode - C/C++
|
||
|
block:
|
||
|
- name: vscode - C/C++ - Install developer tools
|
||
|
package:
|
||
|
name: "{{ packages }}"
|
||
|
state: latest
|
||
|
vars:
|
||
|
packages:
|
||
|
- clang-format
|
||
|
when: user_vscode == true and user_vscode_cpp == true
|
||
|
|
||
|
|
||
|
# VS Code - Python Development Tools
|
||
|
# all done in vscode.yml
|