Using Built-in Terminal0:00
Now, if you come from Atom or Sublime Text, very likely you will switch to the terminal to perform any of your typical commands. Maybe you're using Git, or maybe you need to run an artisan command for Laravel, any of these things. Well, alternatively, Code has a built-in terminal that works really, really well. Take a look right down here. Ctrl-tilde will toggle your terminal. So here, if you want, is where you can run these commands. And you'll notice that you can create any number of tabs that you need to, or close them out.
Running Laravel Mix Tasks0:24
And you'll notice that you can create any number of tabs that you need to, or close them out. Which means you could do things like this. If I have a Laravel installation, I might be using Laravel Mix and Webpack. So I could open up the terminal, run npm install in this case, to pull in my extensions. And now, I could boot up my watcher, hit Ctrl-tilde again to close that out, and I'm all set to go. So, for example, I could edit any random file here, like so, save it, and that will all compile behind the scenes, like so. So now, this tab is being taken up, but I can create a new tab here for all of my regular
Terminal Tabs and Extensions0:56
compile behind the scenes, like so. So now, this tab is being taken up, but I can create a new tab here for all of my regular commands. And you can switch through as you need to. Now it's important to keep in mind, some extensions will do the legwork for you. So for example, there is a Laravel Artisan extension we could pull in so that you don't have to switch to the terminal to run various artisan commands. The same would be true for Git, even things like running your phpunit suite. Nonetheless, like any developer, you will use the terminal constantly, so it's nice that we can toggle it with a simple Ctrl-tilde.
Nonetheless, like any developer, you will use the terminal constantly, so it's nice that we can toggle it with a simple Ctrl-tilde.
