Merge pull request 'Add VSCode configuration and keybinds' (#13) from vscode into main

Reviewed-on: #13
This commit is contained in:
Matej Focko 2020-10-12 22:16:29 +02:00
commit 3ffd139ef1
3 changed files with 89 additions and 0 deletions

View file

@ -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

View 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"
}
]

View 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
}