VSCode: Add dotfiles for vscode

This commit is contained in:
t0xa 2025-09-19 15:01:48 +03:00
parent 4d28e70567
commit 892a1185b4
4 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Remote Attach",
"type": "debugpy",
"request": "attach",
"preLaunchTask": "wait-for-debug-server",
"connect": {
"host": "192.168.10.83",
"port": 5678,
"timeout": 30000
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}
]
}
]
}

53
vscode/keybindings.json Normal file
View file

@ -0,0 +1,53 @@
// Place your key bindings in this file to override the defaults
[
{
"key": "g d",
"command": "editor.action.revealDefinition",
"when": "vim.active && vim.mode == 'Visual'"
},
{
"key": "g shift-d",
"command": "editor.action.revealDefinition",
"when": "vim.active && vim.mode == 'Visual'"
},
{
"key": "alt-shift-p",
"command": "workbench.action.previousEditor",
"when": "editorTextFocus"
},
{
"key": "alt-shift-n",
"command": "workbench.action.nextEditor",
"when": "editorTextFocus"
},
{
"key": "\\ f d s",
"command": "outline.focus",
"when": "vim.active && vim.mode != 'Insert'"
},
{
"key": "\\ f g",
"command": "workbench.action.findInFiles",
"when": "vim.active && vim.mode != 'Insert'"
},
{
"key": "\\ f f",
"command": "workbench.action.quickOpen",
"when": "vim.active && vim.mode != 'Insert'"
},
{
"key": "-",
"command": "workbench.view.explorer",
"when": "vim.active && vim.mode != 'Insert'"
},
{
"key": "ctrl-b",
"command": "workbench.action.toggleSidebarVisibility",
"when": "vim.active && vim.mode != 'Insert'"
},
{
"key": "\\ f b",
"command": "workbench.action.quickOpenPreviousRecentlyUsedEditor",
"when": "vim.active && vim.mode != 'Insert'"
},
]

5
vscode/save_plugins.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
echo "Saving VSCode extensions..."
code --list-extensions > current_vscode_extensions
echo "Extensions saved!"

13
vscode/settings.json Normal file
View file

@ -0,0 +1,13 @@
{
"workbench.colorTheme": "Visual Studio Dark",
"workbench.activityBar.location": "hidden",
"workbench.sideBar.location": "right",
"workbench.editor.showTabs": "single",
"workbench.editor.labelFormat": "medium",
"breadcrumbs.enabled": false,
"editor.fontFamily": "JetBrains Mono, 'Courier New', monospace",
"editor.fontSize": 14,
"editor.fontWeight": "normal",
"editor.lineHeight": 1.5
}