renatoaribeiro / 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

THEME

  • One Dark Pro

EXTENSIONS (necessary)

  • PHP Intelephense - Ben Mewburn
  • PHP Debug - Felix Becker
  • PHP Namespace Resolver - Mehedi Hassan
  • Auto Rename Tag - Jun Han
  • php cs fixer - junstyle
  • PHP DocBlocker - Neil Bayfield
  • GitLens - Eric Amodio
  • Live Share - Microsoft
  • Live Server - Ritwick Dey
  • PHP Server - brapifra
  • DotENV - mikestead
  • Better Comments - Aaron Bond
  • Indent Rainbow - oderwat
  • Unibeautify - Glavin Wiechert
  • Tailwind CSS IntelliSense - Brad Cornes

EXTENSIONS (useful)

  • Test Explorer UI - Holger Benl
  • PHPUnit Test Explorer - Recca0102
  • Pest Snippets - dansysanalyst
  • Bookmarks - Alessandro Fragnani
  • Bracket Pair Colorizer 2 - CoenraadS
  • Composer - Ioannis Kappas
  • Document This - oouo-diogo-perdigao
  • Git History - Don Jayamanne
  • Git Project Manager - Felipe Caputo
  • HTML CSS Support - ecmel
  • HTML Snippets - Mohamed Abusaid
  • Markdown All in One - Yu Zhang
  • Markdown PDF - yzane
  • Markdownlint - David Anson
  • Material Icons Theme - Philip Kief
  • Peacock - John Papa
  • PHP Getters & Setters - phproberto
  • Settings Sync - Shan Khan
  • TODO Highlight - Wayou Liu
  • XML Tools - Josh Johnson

IMPROVEMENTS FOR LARAVEL PROJECTS:

  • Laravel-blade - Winnie Lin
  • IDE Helper:
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

CODE STANDARDS (PADRONIZAÇÃO DE CÓDIGO):

  • composer global require friendsofphp/php-cs-fixer
  • instale a extensão no vs code chamada "php cs fixer" do junstyle
  • Configurações do php.ini (para PHP 8.0.x):
[XDebug]
zend_extension=xdebug
xdebug.mode=debug
xdebug.start_with_request=yes
  • Configurações do xdebug (run > add configuration > PHP):
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003,
            "ignore": [
                "**/vendor/**/*.php"
            ]
        }
    ]
}
  • adicione no settings.json do seu vs code o seguinte conteúdo:
{
    "workbench.startupEditor": "none",
    "workbench.colorTheme": "One Dark Pro",
    "workbench.iconTheme": "material-icon-theme",
    "workbench.editor.enablePreview": false,
    "workbench.editor.showTabs": false,
    "workbench.editor.limit.enabled": true,
    "workbench.editor.limit.value": 1,
    "explorer.confirmDelete": true,
    "window.zoomLevel": 2,
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 1000,
    "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?",
    "[json]": {

        "editor.quickSuggestions": {
            "strings": true
        },
        "editor.suggest.insertMode": "replace",
        "gitlens.codeLens.scopes": [
            "document"
        ]
    },
    "[php]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "junstyle.php-cs-fixer",
    },
}
  • crie um arquivo .php_cs no diretório .vscode => touch .vscode.php_cs

  • dentro do .php_cs, insira o conteúdo desse repositório: https://github.com/icarojobs/phpcsfixer-file

  • salve o arquivo, crie um novo arquivo php sem padrões e na hora de salvar, surpreenda-se!

    IMPROVEMENTS FOR FLUTTER:

    • Flutter - Dart Code
    • TODO tree - Gruntfuggly
    • pubspec assist - Jeroen Meijer
    • image preview - Kiss Tamás
    • [FF] Flutter Files - Igor Kravchenko
    • Error lens - Alexander
    • Color Hightlight - Sergii Naumov
    • Awesome Flutter Snippets - Nash Ramdial
    • UPDATE YOUR USER PATHS (ENVIRONMENT VARS):
      • D:\ANDROID\Studio\jre\bin
      • D:\ANDROID\sdk\build-tools\29.0.3
      • D:\ANDROID\sdk\emulator
      • D:\ANDROID\sdk\platform-tools

EMULATOR:

  • Install BlueStacks for Hyper-v:
  • BlueStacksInstaller_4.180.0.4203_native_7576530aaaa81c33a40d3dad71eb79c4

About

VS CODE - The useful and necessary plugins and extensions