Add VSCode configuration and keybinds
Signed-off-by: Matej Focko <matej.focko@outlook.com>
This commit is contained in:
parent
5853c4fb30
commit
a783eb1c86
3 changed files with 89 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
block:
|
||||
- shell: mkdir -p ~/.local/bin
|
||||
- shell: mkdir -p ~/.local/share
|
||||
- shell: mkdir -p ~/.config/Code\ -\ Insiders/User
|
||||
|
||||
- name: Install VSCode script
|
||||
template:
|
||||
|
@ -18,3 +19,11 @@
|
|||
template:
|
||||
src: templates/code-url.desktop.j2
|
||||
dest: ~/.local/share/visual-studio-code-insiders-url-handler.desktop
|
||||
|
||||
- name: Install VSCode configuration
|
||||
template:
|
||||
src: templates/{{ item }}.json.j2
|
||||
dest: ~/.config/Code\ -\ Insiders/User/{{ item }}.json
|
||||
loop:
|
||||
- settings
|
||||
- keybindings
|
||||
|
|
34
playbooks/roles/vscode/templates/keybindings.json.j2
Normal file
34
playbooks/roles/vscode/templates/keybindings.json.j2
Normal file
|
@ -0,0 +1,34 @@
|
|||
[
|
||||
{
|
||||
"key": "alt+f",
|
||||
"command": "workbench.action.toggleMaximizedPanel"
|
||||
},
|
||||
{
|
||||
"key": "f7",
|
||||
"command": "workbench.view.explorer"
|
||||
},
|
||||
{
|
||||
"key": "f7",
|
||||
"command": "workbench.action.toggleSidebarVisibility",
|
||||
"when": "explorerViewletVisible"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+e",
|
||||
"command": "-workbench.view.explorer"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+shift+k",
|
||||
"command": "workbench.action.terminal.clear",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+pagedown",
|
||||
"command": "workbench.action.terminal.focusNext",
|
||||
"when": "terminalFocus"
|
||||
},
|
||||
{
|
||||
"key": "ctrl+pageup",
|
||||
"command": "workbench.action.terminal.focusPrevious",
|
||||
"when": "terminalFocus"
|
||||
}
|
||||
]
|
46
playbooks/roles/vscode/templates/settings.json.j2
Normal file
46
playbooks/roles/vscode/templates/settings.json.j2
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"breadcrumbs.enabled": false,
|
||||
|
||||
"editor.cursorBlinking": "phase",
|
||||
"editor.cursorStyle": "underline",
|
||||
|
||||
"editor.fontFamily": "CaskaydiaCovePL Nerd Font",
|
||||
"editor.fontWeight": 350,
|
||||
"editor.fontSize": 16,
|
||||
"editor.fontLigatures": true,
|
||||
|
||||
"terminal.integrated.fontSize": 15,
|
||||
|
||||
"editor.highlightActiveIndentGuide": true,
|
||||
"editor.lineNumbers": "relative",
|
||||
|
||||
"editor.minimap.enabled": false,
|
||||
"editor.minimap.maxColumn": 80,
|
||||
|
||||
"editor.renderIndentGuides": true,
|
||||
"editor.renderWhitespace": "all",
|
||||
"editor.rulers": [
|
||||
80
|
||||
],
|
||||
|
||||
"git.autofetch": true,
|
||||
|
||||
"window.menuBarVisibility": "toggle",
|
||||
"window.titleBarStyle": "custom",
|
||||
"window.zoomLevel": 0,
|
||||
|
||||
"workbench.activityBar.visible": true,
|
||||
"workbench.colorTheme": "Default Dark+",
|
||||
|
||||
"workbench.settings.editor": "json",
|
||||
"workbench.editor.showTabs": true,
|
||||
|
||||
//****************************** EXTENSIONS ******************************//
|
||||
|
||||
"gitlens.views.compare.location": "scm",
|
||||
"gitlens.views.fileHistory.location": "scm",
|
||||
"gitlens.views.lineHistory.location": "scm",
|
||||
"gitlens.views.repositories.location": "scm",
|
||||
"gitlens.views.search.location": "scm",
|
||||
"diffEditor.renderSideBySide": true
|
||||
}
|
Loading…
Reference in a new issue