Codium config

This commit is contained in:
2025-02-23 14:06:33 +01:00
parent 99e98b1766
commit 957e7395ce
4 changed files with 357 additions and 0 deletions

View File

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

View File

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

View File

@ -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 <iostream>",
"using namespace std;",
"",
"int main() {",
" $0",
" return 0;",
"}"
],
"description": "C++ template"
},
"Execution time": {
"prefix": "exectime",
"body": [
"#include <iostream>",
"#include <ctime>",
"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 <<time <<\" s\";",
" return 0;",
"}"
],
"description": "C++ template"
}
}

View File

@ -0,0 +1,15 @@
{
"Centered figure": {
"prefix": [ "\\figure" ],
"body": [
"\\begin{figure}[H]",
"\t\\centering",
"\t\\includegraphics[width=$2\\linewidth]{$1}",
"\t\\caption{",
"\t\t\\parbox[t]{$2\\linewidth}{$3}",
"\t}",
"\\end{figure}",
],
"description": "Centered figure"
}
}