vp-15-configure-vscodium.sh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/bin/bash
  2. if (( $EUID == 0 )); then
  3. echo "Eseguire lo script come utente non amministratore"
  4. exit
  5. fi
  6. # installo estensioni per git, java, laravel, spring, cobol
  7. codium --install-extension bmewburn.vscode-intelephense-client
  8. codium --install-extension codingyu.laravel-goto-view
  9. codium --install-extension donjayamanne.githistory
  10. codium --install-extension jacqueslucke.gcov-viewer
  11. codium --install-extension michelemelluso.gitignore
  12. codium --install-extension ms-ceintl.vscode-language-pack-it
  13. codium --install-extension ocamlpro.superbol
  14. codium --install-extension olegkunitsyn.gnucobol-debug
  15. codium --install-extension onecentlin.laravel-blade
  16. codium --install-extension onecentlin.laravel5-snippets
  17. codium --install-extension porifa.laravel-intelephense
  18. codium --install-extension redhat.java
  19. codium --install-extension stef-k.laravel-goto-controller
  20. codium --install-extension vmware.vscode-spring-boot
  21. codium --install-extension vscjava.vscode-java-debug
  22. codium --install-extension vscjava.vscode-java-test
  23. codium --install-extension vscjava.vscode-maven
  24. codium --install-extension vscjava.vscode-spring-boot-dashboard
  25. codium --install-extension vscjava.vscode-spring-initializr
  26. codium --install-extension xdebug.php-debug
  27. # se la dir non esiste la creo
  28. DIR=~/.config/VSCodium/User
  29. if [ ! -d "$DIR" ]; then
  30. mkdir -p "$DIR"
  31. fi
  32. # setto VSCodium come preferisco
  33. cat > ~/.config/VSCodium/User/settings.json << EOF
  34. {
  35. "editor.minimap.enabled": false,
  36. "editor.tabSize": 2,
  37. "editor.detectIndentation": false,
  38. "editor.insertSpaces": true,
  39. "files.trimTrailingWhitespace": true,
  40. "php.validate.executablePath": "/usr/bin/php",
  41. "files.trimFinalNewlines": true,
  42. "workbench.editor.enablePreviewFromQuickOpen": true,
  43. "workbench.editor.enablePreviewFromCodeNavigation": true,
  44. "java.jdt.ls.java.home": "/usr/lib/jvm/default-java",
  45. "boot-java.rewrite.reconcile": true,
  46. "redhat.telemetry.enabled": false,
  47. }
  48. EOF