46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
---
|
|
# Common/VSCode: Install and Configure VS Code - macOS Version
|
|
|
|
# Install Visual Studio Code and Set Basic Configuration
|
|
- name: vscode - Basics
|
|
block:
|
|
- name: vscode - Basics - Install
|
|
homebrew_cask:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- visual-studio-code
|
|
- name: vscode - Basics - Copy global settings
|
|
copy:
|
|
src: "{{ role_path }}/files/vscode-settings.json"
|
|
dest: ~/Library/Application Support/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
|
|
homebrew:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- clang-format
|
|
when: user_lang_cpp == true
|
|
|
|
# VS Code - Python Development Tools
|
|
# all done in vscode.yml
|
|
|
|
# VS Code - Golang Development Tools
|
|
- name: vscode - Golang
|
|
block:
|
|
- name: vscode - Golang - Install developer tools
|
|
homebrew:
|
|
name: "{{ packages }}"
|
|
state: present
|
|
vars:
|
|
packages:
|
|
- go
|
|
when: user_lang_golang == true
|