Solution

There will be no introduction here. Straight to the point.

For a comfortable development for the Magento 2 I use the following setting:

  1. Enable developer mode. In this mode:
    • you can see errors;
    • the static content like css and javascript files will be linked to the pub folder and you no need to do setup:static-content:deploy each time after an changes.

To do it, please run the command:

bin/magento deploy:mode:set developer

magento-2-enable-developer-mode

  1. Disable the following cache types:
    • layout
    • block_html
    • full_page

Disabling of these caches will slow down the page speed loading (a little bit), but will saves your time and nerves. Just trust me ๐Ÿ™

To this just run the command:

bin/magento cache:disable layout block_html full_page

magento-2-enable-developer-mode

Conclusion

As you can see this is very simple solution.

But it will very helpfull for your development for Magento 2.

Happy development ๐Ÿค˜