cpdrenato / vscode-useful-extensions

VS CODE - The useful and necessary plugins and extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vscode-useful-extensions by Tio Jobs

EXTENSIONS (necessary)

  • IntelliJ Keybindings [Keisuke Kato]
  • IntelliSense for CSS class names in HTML [Zignd]
  • Javascript Snippets [charalampos karypidis]
  • PHP Extension Pack [Xdebug]
  • PHP Intelephense [Ben Mewburn]
  • PHP Namespace Resolver [Mehedi Hassan]
  • php cs fixer [junstyle]
  • Laravel Blade Snippets [Winnie Lin]
  • Laravel Snippets [Winnie Lin]
  • Laravel Artisan [Ryan Naddy]
  • Laravel Extra Intellisense [amir]
  • Laravel goto view [codingyu]
  • laravel-goto-components [naoray]
  • Laravel Blade formatter [Shuhei Hayashibara] (needs .bladeformatterrc on root)
  • Twig [whatwedo]
  • TSLint [Microsoft]
  • ESLint [Microsoft]
  • Docker [Microsoft]
  • Reveal [smulyono]
  • Prettier - Code formatter [Prettier]
  • EditorConfig for VS Code [EditorConfig]
  • Auto Rename Tag [Jun Han]
  • Auto Close Tag [Jun Han]
  • Apache Conf [mrmlnc]
  • YAML [Red Hat]
  • DotENV [mikestead]
  • REST Client [Huachao Mao]
  • Settings Sync [Shan Khan]
  • indent-rainbow [oderwat]
  • GitLens - Git supercharged [GitKraken]
  • Run on Save [pucelle]
  • Live Share [Microsoft]
  • Live Server [Ritwick Dey]
  • Remote - SSH [Microsoft]
  • Remote - WSL [Microsoft]
  • MySQL [cweijan]
  • Better Comments [Aaron Bond]
  • Tailwind CSS IntelliSense [Tailwind Labs]
  • Test Explorer UI [Holger Benl]
  • PHPUnit Test Explorer [Recca0102]
  • Better Pest [Miguel Pedrafita]
  • Pest Snippets [dansysanalyst]
  • Bookmarks [Alessandro Fragnani]
  • Git History [Don Jayamanne]
  • HTML CSS Support [ecmel]
  • ES7 + React/Redux/React-Native snippets [dsznajder]
  • React Native Tools [Microsoft]
  • vscode-styled-components [Styled Components]
  • NativeBase VS Code Extension [NativeBase]
  • colorize [kamikillerto]
  • Markdown All in One [Yu Zhang]
  • Markdown PDF [yzane]
  • Markdownlint [David Anson]
  • PHP Getters & Setters [phproberto]
  • TODO Highlight [Wayou Liu]
  • XML Tools [Josh Johnson]
  • Vue Language Features (Volar) [Vue]
  • Reload [natqe]
  • PHP Parameter Hint [Robert]
  • Laravel Blade Spacer [Austen Cameron]

THEME

  • Darcula IntelliJ Theme [Minh Nguyen]
  • vscode-icons [VSCode Icons Team]

MY PERSONAL VS CODE SETTINGS

Make .vscode directory on your root project with settings.json file. Insert the following settings in settings.json file:

{
  "gitlens.statusBar.enabled": false,
  "gitlens.hovers.enabled": false,
  "gitlens.blame.format": "${author|10} ${date}",
  "gitlens.blame.highlight.locations": ["gutter", "line", "overview"],
  "gitlens.blame.avatars": false,
  "gitlens.blame.compact": false,
  "gitlens.defaultDateFormat": "DD/MM/YYYY",
  "gitlens.defaultDateShortFormat": "DD/MM/YYYY",
  "gitlens.blame.heatmap.enabled": false,
  "gitlens.codeLens.enabled": false,
  "files.autoSave": "afterDelay",
  "files.autoSaveDelay": 1000,
  "workbench.iconTheme": "vscode-icons",
  "workbench.editor.showTabs": false,
  "workbench.editor.limit.enabled": true,
  "workbench.editor.limit.value": 1,
  "workbench.sideBar.location": "right",
  "window.zoomLevel": 1,
  "editor.minimap.enabled": false,
  "editor.detectIndentation": false,
  "editor.tabSize": 4,
  "editor.formatOnSave": true,
  "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",
  "editor.linkedEditing": true,
  "editor.bracketPairColorization.enabled": true,
  "editor.guides.bracketPairs": true,
  "runOnSave.commands": [
    {
      "match": ".*\\.php$",
      "command": "editor.action.formatDocument",
      "runIn": "vscode"
    }
  ],
  "eslint.workingDirectories": [
    {
      "directory": "./client"
    }, // should point to the directory containing eslint config
    {
      "directory": "./www"
    },
    {
      "directory": "."
    }
  ],
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "source.fixAll.tslint": true,
    "source.fixAll.stylelint": true
  },
  "javascript.preferences.quoteStyle": "single",
  "typescript.preferences.quoteStyle": "single",
  "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact"],
  "explorer.confirmDelete": true,
  "vsicons.dontShowNewVersionMessage": true,
  "prettier.printWidth": 120,
  "[json]": {
    "editor.quickSuggestions": {
      "strings": true
    },
    "gitlens.codeLens.scopes": ["document"],
    "editor.defaultFormatter": "vscode.json-language-features",
    "editor.suggest.insertMode": "replace"
  },
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "typescript.updateImportsOnFileMove.enabled": "always",
  "javascript.updateImportsOnFileMove.enabled": "always",
  "workbench.startupEditor": "none",
  "workbench.statusBar.visible": true,
  "files.trimTrailingWhitespace": true,
  "yaml.schemas": {},
  "yaml.customTags": []
}

Be amazed by its powerful new IDE!

USEFUL KEYBOARD SHORTCUTS

Here are a few new keyboard shortcuts that you might wanna learn to make your life easier.

Toggle Terminal Panel => Control + J
New Terminal => Control + Shift + '
Toggle Explorer => ALT + 1
Quick Search => Shift+Shift (2 times fast)
Add Break Point => Control + F8
Enable Debug => F5
Open command Palette => Ctrl + Shift + P OR F1 key
Open Settings => Ctrl + ,
Select all occurrences of Find match => Ctrl + Shift + L
Add selection/cursor to next match => Alt + J
Jump to matching bracket => Ctrl + Shift + \

IMPROVEMENTS FOR LARAVEL PROJECTS:

  • Laravel-blade [Winnie Lin]

IDE Helper:

Install Laravel IDE Helper to improve your code completion!

composer require --dev barryvdh/laravel-ide-helper --ignore-platform-reqs
  • set in your app/Providers/AppServiceProvider.php:
public function register()
{
    if ($this->app->isLocal()) {
        $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
    }
    // ...
}
  • run php artisan clear-compiled
  • set in your composer.json (scripts):
"scripts": {
    "post-update-cmd": [
    "Illuminate\\Foundation\\ComposerScripts::postUpdate",
    "@php artisan ide-helper:generate",
    "@php artisan ide-helper:meta"
    ]
},

run composer and laravel commands:

composer update --ignore-platform-reqs

php artisan vendor:publish --provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" --tag=config

XDebug Setup with Docker/Sail on VS CODE

Make sure the launch.json file exists in .vscode root directory:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Xdebug for Project sail-debug",
            "type": "php",
            "request": "launch",
            "hostname": "0.0.0.0",
            "port": 9003,
            "pathMappings": {
                "/var/www/html": "${workspaceFolder}"
            },
            "log": true,
            "xdebugSettings": {
                "max_children": 10000,
                "max_data": 10000,
                "show_hidden": 1
            }
        },
        {
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9000
        }
    ]
}

About

VS CODE - The useful and necessary plugins and extensions


Languages

Language:Shell 100.0%