Look: I write in Visual Studio Community Edition which is free. If you complain, I'm breaking some licenzionnoe agreement, but it is unlikely I will come to pull the eggs because of this.
And if it comes, it will kick Studio, get Visual Studio Code, it is quite good to me at this stage to replace it.
The repository I lay in VSTS — up to 5 developers account you can not pay, all repositories are private. There is a system Assembly and delivery.
Some little practice I have hosted on a free plan good. They have had enough.
Of course, all this has limits, exceeding which will have to shell out. But until you learn, train and work alone, you are unlikely these restrictions will be rested. And of course, I use many things for money. But without this in any way.
It is important to understand that the ecosystem of Microsoft is designed so that you spend money not in a void — you are investing to earn.