Monday, December 4, 2023

vscode / vs code

  • select a column / rectangle
    • click once on the top position
    • alt + shift + keep left click mouse to select a colum
  • Open the Command Palette:
    • Press `cmd+shift+P` (on Mac) or `Ctrl+Shift+P` (on Windows/Linux)
      • "Chat: Open chat": to get copilot right panel
      • "View: Toggle Terminal" (show console at the screen bottom)
  • cmd + shift + V: display a readme.md
  • cmd + shift + F: find on the overall project
  • cmd + shift + E: show where the file is in the folder tree (or select a file while on the explorer view)
  • .
  • cmd + S:  format file when the Prettier extension is installed, like "save"
  • cmd + F:  search in file
  • .
  • settings (cmd + shift + P: Preferences: open user settings (JSON)
    • ~/Library/Application Support/Code/User/settings.json
    • disable autocompletion in txt files 
      • "[plaintext]": {
      •       "editor.suggest.showSnippets": false,
      •       "editor.suggest.showWords": false,
      •       "editor.acceptSuggestionOnCommitCharacter": false,
      •       "editor.acceptSuggestionOnEnter": "off"
      • }

  • gitlens / code lens
    • "GitLens: Open Settings"
  • extensions
    • theme: darkula
    • GitLens
    • ESLint: corrections
    • Prettier
  • keys on Mac while editing
    • ctrl + -      go back to previous location

Tuesday, November 21, 2023

codium editor

Codium is like "VS Code" but without Microsoft prorpietary parts.

  • select a rectangle on MacOS: 
    • set the cursor on the line
    • keep pressed "alt " + "cmd " and use the down arrows
    • edit