Thursday, June 27, 2024

VSCODE extensions

Extensions for VSCODE:

  • Bookmarks
  • Code Spell Checker + Spanish dictionary
  • LaTeX Workshop
  • LTeX+ grammar/spell checking
  • Jupyter
  • Python


Configuration JSON:

{
    // GENERAL EDITOR CUSTOMIZATION:
    // Disable GPU acceleration in the integrated terminal
    "terminal.integrated.gpuAcceleration": "off",
    // Disable copying with syntax highlighting to avoid issues when pasting into other applications
    "editor.copyWithSyntaxHighlighting": false,
    // Makes the text cursor slightly wider so it is easier to spot in dense text
    "editor.cursorWidth": 3,
    // Enable bracket pair guides only for the active pair to reduce visual clutter and improve focus on the current code block
    "editor.guides.bracketPairs": "active",
    // Disable warnings for non-basic ASCII characters
    "editor.unicodeHighlight.nonBasicASCII": false,
    // Enable smooth scrolling for a better user experience
    "editor.mouseWheelZoom": true,
    // Enable smooth scrolling for lists and the editor
    "workbench.list.smoothScrolling": true,
    // Enable smooth caret animation for a more fluid typing experience
    "editor.cursorSmoothCaretAnimation": "on",
    // Enable smooth scrolling in the terminal and editor for a more fluid experience
    "terminal.integrated.smoothScrolling": true,
    // Enable smooth scrolling in the editor for a more fluid experience
    "editor.smoothScrolling": true,
    // Set the default Python interpreter path
    "python.defaultInterpreterPath": "/bin/python",
    // Disable the minimap to reduce distractions and improve performance
    "editor.minimap.enabled": false,
    // Set the color theme to Monokai for a visually appealing coding environment
    "workbench.colorTheme": "Monokai",
    // Enable word wrap to prevent horizontal scrolling and improve readability
    "editor.wordWrap": "on",
    // Show dots for double spaces and trailing spaces
    "editor.renderWhitespace": "boundary",
    // Ask to save files before closing the editor
    "files.hotExit": "off",
    // Disable warnings for long lines
    "terminal.integrated.inheritEnv": false,
    // Skip the "matlab.interrupt" command in the terminal to prevent conflicts with MATLAB's interrupt functionality
    "terminal.integrated.commandsToSkipShell": [
        "matlab.interrupt"
    ],
    
    // SPELL CHECKING CUSTOMIZATION:
    // Enable spell checking for English and Spanish, and make it case sensitive to catch more errors
    "cSpell.caseSensitive": true,
    // Set the languages for spell checking to English and Spanish
    "cSpell.language": "en,es",
    // User defined words for spell checking
    "cSpell.userWords": [
        "Eulerian",
        "Leonhard",
        "turbomachinery"
    ],
    "cSpell.ignoreRegExpList": [
        // Prevents the spell checker from flagging LaTeX commands (anything starting with \)
        "\\\\[a-zA-Z]+",
        // Prevents the spell checker from flagging citation and reference keys
        "\\\\(cite|ref|eqref|label)\\{[^}]+\\}"
    ],
    
    // LATEX WORKSHOP CUSTOMIZATION:
    // Enable SyncTeX after building the LaTeX document for better synchronization between source and PDF
    "latex-workshop.synctex.afterBuild.enabled": true,
    // Enable synchronization between the outline view and the PDF viewer for easier navigation
    "latex-workshop.view.outline.sync.viewer": true,
    // Trims the PDF preview to remove white margins
    "latex-workshop.view.pdf.trim": 15,
    // Customize the color and font style of section headings in LaTeX files to make them stand out
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": [
                    "entity.name.section.latex",
                    "entity.name.section.chapter.latex",
                    "entity.name.section.subsection.latex",
                    "entity.name.section.subsubsection.latex"
                ],
                "settings": {
                    "foreground": "#FF0000",
                    "fontStyle": "bold"
                }
            }
        ]
    },
}