Recently i found out this awesome little handy feature that the drupal console has. Before that i used to spend more time in switching from a drupal development to a production enviroment and vise versa.
So here it is:
drupal site:mode [dev,prod]
When you type
drupal site:mode dev
drupal console will automatically change the settings file to include the settings.local.php file among with the services.yml file etc. You can later disable it by just typing
drupal site:mode prod