Do you know the .vscode/tasks.json file? You can add it to your project, and @vscode will run your configured commands automatically when you open the project ✨

I use this for the Inertia Table so it starts the web server and Vite without me having to open terminals for them 👌

#Laravel #PHP #JS #coding

  • @expr
    link
    English
    226 days ago

    Yeah, it’s a little insane to me to automatically run code that exists in a file in the current directory, by default.

    Like there’s a reason that direnv requires you to execute direnv allow if you enter a directory with an .envrc that you hadn’t previously approved.

    I don’t know of any other editor that has this as standard behavior, and for good reason.