I want to use Visual Studio Code for development in my sandbox and I was able to setup as per this article.
Everything is working fine but whenever I make any change to ApexClass, I need to right click on the file and choose the option
SFDX: Deploy Source to Org or run the below command
sfdx force:source:deploy -p path/to/source
Has anyone come up with a hack/workaround for this problem so that ApexClass is automatically compiled as it does in Force IDE/MavensMate?
NOTE: This question is about scratch orgs and this is about sandbox.