Console - VSCode & Winter CMS
Extension for editor VSCode
This extension allows you to insert Artisan console commands for development in Winter CMS into the built-in terminal of the VSCode editor by pressing a keyboard shortcut key.
For example, you want to enter a command into the terminal to create a component for a plugin. For this you need:
- Open the built-in terminal of the VSCode editor
- Press a combination on the keyboard alt + C
The line will be inserted into the terminal:
php artisan create:component AuthorName.PluginName NameComponent
but the command itself won't run. You can edit this line as you need and press the Enter key to run the command.
Parameters
In VSCode settings you can set your own values for authorName
and PluginName
. To do this, go to Options Ctrl + , and enter in the search wintercms
.
If you find it more convenient to make settings in the settings.json, file, here is an example for these settings:
"wintercms.console.authorName": "WebVPF",
"wintercms.console.pluginName": "Plug"
Now the line with the command will be output like this:
php artisan create:component WebVPF.Plug NameComponent
Keyboard shortcuts
Scaffolding
The keyboard shortcuts for Scaffolding commands are easy to remember. They all start with the Alt key. The second key is the first letter of the element created by the command. The only exceptions are commands for creating a controller and a console command, since the C key is already taken under the command to create the component.
Keyboard shortcuts |
Command |
Alt + T |
create:theme |
Alt + P |
create:plugin |
Alt + C |
create:component |
Alt + M |
create:model |
Alt + S |
create:settings |
Alt + Shift + C |
create:controller |
Alt + J |
create:job |
Alt + F |
create:formwidget |
Alt + R |
create:reportwidget |
Alt + K |
create:command |
Documentation Scaffolding commands Winter CMS
Command List
Keyboard shortcuts |
Command |
Ctrl + Del |
php artisan cache:clear |
Ctrl + U |
composer update |
Ctrl + Shift + U |
php artisan winter:up |
Ctrl + W |
composer create-project wintercms/winter name |
Ctrl + I |
php artisan winter:install |
Ctrl + Shift + Del |
php artisan winter:fresh |
Ctrl + Shift + L |
php artisan plugin:list |
Ctrl + Shift + D |
php artisan winter:down |
Ctrl + Shift + R |
php artisan plugin:refresh AuthorName.PluginName |
Ctrl + Shift + Alt + A |
php artisan winter:util compile assets |
Ctrl + Shift + Alt + G |
php artisan winter:util compile lang |
Ctrl + Shift + Alt + J |
php artisan winter:util compile js |
Ctrl + Shift + Alt + L |
php artisan winter:util compile less |
Documentation Command Line Interface Winter CMS