Easy way to avoid that is to set up your development environment e.g. sublime to handle it for you.