From 957e7395ce4af2e2e144dbc46484b6ac1c5a34d7 Mon Sep 17 00:00:00 2001 From: NotXia <35894453+NotXia@users.noreply.github.com> Date: Sun, 23 Feb 2025 14:06:33 +0100 Subject: [PATCH] Codium config --- .config/VSCodium/User/keybindings.json | 65 ++++++ .config/VSCodium/User/settings.json | 232 ++++++++++++++++++++++ .config/VSCodium/User/snippets/cpp.json | 45 +++++ .config/VSCodium/User/snippets/latex.json | 15 ++ 4 files changed, 357 insertions(+) create mode 100644 .config/VSCodium/User/keybindings.json create mode 100644 .config/VSCodium/User/settings.json create mode 100644 .config/VSCodium/User/snippets/cpp.json create mode 100644 .config/VSCodium/User/snippets/latex.json diff --git a/.config/VSCodium/User/keybindings.json b/.config/VSCodium/User/keybindings.json new file mode 100644 index 0000000..bbdec66 --- /dev/null +++ b/.config/VSCodium/User/keybindings.json @@ -0,0 +1,65 @@ +// Place your key bindings in this file to override the defaultsauto[] +[ + { + "key": "f9", + "command": "-editor.debug.action.toggleBreakpoint", + "when": "debuggersAvailable && editorTextFocus" + }, + { + "key": "ctrl+shift+c", + "command": "editor.action.commentLine", + "when": "editorTextFocus && !editorReadonly" + }, + { + "key": "alt+down", + "command": "editor.action.moveLinesDownAction", + "when": "editorTextFocus && !editorReadonly" + }, + { + "key": "alt+up", + "command": "editor.action.moveLinesUpAction", + "when": "editorTextFocus && !editorReadonly" + }, + { + "key": "ctrl+shift+a", + "command": "-editor.action.blockComment", + "when": "editorTextFocus && !editorReadonly" + }, + { + "key": "ctrl+z", + "command": "-undo", + "when": "notebookEditorFocused" + }, + + // Toggle between terminal and editor focus + { + "key": "ctrl+'", + "command": "workbench.action.terminal.focus" + }, + { + "key": "ctrl+'", + "command": "workbench.action.focusActiveEditorGroup", + "when": "terminalFocus" + }, + { + "key": "alt+right", + "command": "workbench.action.moveEditorToNextGroup" + }, + { + "key": "ctrl+alt+right", + "command": "-workbench.action.moveEditorToNextGroup" + }, + { + "key": "alt+left", + "command": "workbench.action.moveEditorToPreviousGroup" + }, + { + "key": "ctrl+alt+left", + "command": "-workbench.action.moveEditorToPreviousGroup" + }, + { + "key": "ctrl+shift+c", + "command": "-workbench.action.terminal.openNativeConsole", + "when": "!terminalFocus" + } +] \ No newline at end of file diff --git a/.config/VSCodium/User/settings.json b/.config/VSCodium/User/settings.json new file mode 100644 index 0000000..3de3565 --- /dev/null +++ b/.config/VSCodium/User/settings.json @@ -0,0 +1,232 @@ +{ + "editor.multiCursorModifier": "ctrlCmd", + "editor.renderWhitespace": "none", + "editor.suggestSelection": "recentlyUsed", + "editor.accessibilitySupport": "off", + "explorer.confirmPasteNative": false, + + "editor.tokenColorCustomizations": { + "[Visual Studio Dark]": { + "types": "#a9d3e0", + "textMateRules": [ + { + "scope": "variable.parameter.c, variable.other.object.c", + "settings": { + "foreground": "#bdb99a" + } + } + ] + } + }, + + "workbench.startupEditor": "newUntitledFile", + "workbench.sideBar.location": "left", + "workbench.editor.empty.hint": "hidden", + "workbench.colorTheme": "Visual Studio Dark", + "workbench.iconTheme": "material-icon-theme", + + "explorer.confirmDragAndDrop": false, + "explorer.confirmDelete": false, + "explorer.compactFolders": false, + + "security.workspace.trust.untrustedFiles": "open", + "security.workspace.trust.enabled": false, + + "telemetry.telemetryLevel": "off", + "redhat.telemetry.enabled": false, + + + "remote.SSH.remotePlatform": {}, + + + "git.confirmSync": false, + "git.enableSmartCommit": true, + "git.autofetch": true, + "git.mergeEditor": false, + "diffEditor.ignoreTrimWhitespace": false, + "gitlens.codeLens.recentChange.enabled": false, + "gitlens.codeLens.authors.enabled": false, + "gitlens.plusFeatures.enabled": false, + "gitlens.gitCommands.skipConfirmations": [ + "fetch:command", + "switch:command", + "branch-create:command", + "stash-apply:command", + "stash-push:command" + ], + "gitlens.views.branches.files.layout": "tree", + "settingsSync.ignoredSettings": [ + "git.enableCommitSigning" + ], + "gitlens.hovers.currentLine.over": "line", + "gitlens.advanced.messages": { + "suppressCreatePullRequestPrompt": true + }, + + + "python.createEnvironment.trigger": "off", + "python.languageServer": "Default", + + "C_Cpp.formatting": "vcFormat", + "C_Cpp.vcFormat.space.aroundBinaryOperator": "ignore", + "C_Cpp.vcFormat.space.pointerReferenceAlignment": "right", + + "notebook.markup.fontSize": 14, + "notebook.cellToolbarLocation": { + "default": "right", + "jupyter-notebook": "right" + }, + "notebook.lineNumbers": "on", + "notebook.output.scrolling": true, + "jupyter.askForKernelRestart": false, + "jupyter.widgetScriptSources": [ + "jsdelivr.com", + "unpkg.com" + ], + + "latex-workshop.view.pdf.viewer": "tab", + "latex-workshop.intellisense.citation.backend": "biblatex", + "[latex]": { + "editor.wordWrap": "on", + }, + "[bibtex]": { + "editor.wordWrap": "on" + }, + "[tex]": { + "editor.wordWrap": "on" + }, + "latex-workshop.latex.autoBuild.run": "onSave", + "latex-workshop.latex.tools": [ + { + "name": "latexmk", + "command": "latexmk", + "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-pdf", "-outdir=%OUTDIR%", "%DOC%" ], + "env": {} + }, + { + "name": "lualatexmk", + "command": "latexmk", + "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-lualatex", "-outdir=%OUTDIR%", "%DOC%" ], + "env": {} + }, + { + "name": "xelatexmk", + "command": "latexmk", + "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "-xelatex", "-outdir=%OUTDIR%", "%DOC%" ], + "env": {} + }, + { + "name": "latexmk_rconly", + "command": "latexmk", + "args": [ "%DOC%" ], + "env": {} + }, + { + "name": "pdflatex", + "command": "pdflatex", + "args": [ "-synctex=1", "-interaction=nonstopmode", "-file-line-error", "%DOC%" ], + "env": {} + }, + { + "name": "bibtex", + "command": "bibtex", + "args": [ "%DOCFILE%" ], + "env": {} + }, + { + "name": "rnw2tex", + "command": "Rscript", + "args": [ "-e", "knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')" ], + "env": {} + }, + { + "name": "jnw2tex", + "command": "julia", + "args": [ "-e", "using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")" ], + "env": {} + }, + { + "name": "jnw2texminted", + "command": "julia", + "args": [ "-e", "using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")" ], + "env": {} + }, + { + "name": "pnw2tex", + "command": "pweave", + "args": [ "-f", "tex", "%DOC_EXT%" ], + "env": {} + }, + { + "name": "pnw2texminted", + "command": "pweave", + "args": [ "-f", "texminted", "%DOC_EXT%" ], + "env": {} + }, + { + "name": "tectonic", + "command": "tectonic", + "args": [ "--synctex", "--keep-logs", "%DOC%.tex" ], + "env": {} + } + ], + + "[plaintext]": { + "editor.wordWrap": "on" + }, + "[markdown]": { + "editor.wordWrap": "on", + }, + + + "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", + "terminal.integrated.defaultProfile.windows": "Command Prompt", + "terminal.integrated.profiles.windows": { + "PowerShell": { + "source": "PowerShell", + "icon": "terminal-powershell" + }, + "Command Prompt": { + "path": [ + "${env:windir}\\Sysnative\\cmd.exe", + "${env:windir}\\System32\\cmd.exe" + ], + "args": [], + "icon": "terminal-cmd" + }, + "Git Bash": { + "source": "Git Bash" + }, + "Ubuntu (WSL)": { + "path": "C:\\WINDOWS\\System32\\wsl.exe", + "args": [ + "-d", + "Ubuntu" + ] + } + }, + + "terminal.integrated.defaultProfile.linux": "zsh", + + + "vscode-pets.petSize": "medium", + + + "projectManager.tags": [ + "Personal", + "Work", + "Uni" + ], + + + "ltex.additionalRules.enablePickyRules": true, + "ltex.additionalRules.motherTongue": "it", + "ltex.statusBarItem": true, + "editor.mouseWheelScrollSensitivity": 1.5, + "git.openRepositoryInParentFolders": "never", + "editor.unicodeHighlight.ambiguousCharacters": false, + "editor.unicodeHighlight.invisibleCharacters": false, + "notebook.editorOptionsCustomizations": { + "editor.insertSpaces": true + }, +} \ No newline at end of file diff --git a/.config/VSCodium/User/snippets/cpp.json b/.config/VSCodium/User/snippets/cpp.json new file mode 100644 index 0000000..bb0b14d --- /dev/null +++ b/.config/VSCodium/User/snippets/cpp.json @@ -0,0 +1,45 @@ +{ + "C++ Template": { + "prefix": "C++ template", + "body": [ + "$BLOCK_COMMENT_START", + " Descrizione: $1", + " Autore: Tian Cheng Xia", + " Data: $CURRENT_DATE/$CURRENT_MONTH/$CURRENT_YEAR $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND", + "$BLOCK_COMMENT_END", + "#include ", + "using namespace std;", + "", + "int main() {", + " $0", + " return 0;", + "}" + ], + "description": "C++ template" + }, + + "Execution time": { + "prefix": "exectime", + "body": [ + "#include ", + "#include ", + "using namespace std;", + "", + "int main() {", + " clock_t t_start, t_end;", + " t_start = clock();", + "", + " // Code --", + " $0", + " // -------", + "", + " t_end = clock();", + " double time = double(t_end - t_start) / double(CLOCKS_PER_SEC);", + " cout.precision(17);", + " cout <<\"Tempo di esecuzione: \" << fixed <