How to Use "doing" with Example Sentences

1. What are you doing now ?
2. By doing so erdogan has once again captured the imagination of the region .
3. He knew what he was doing .
4. The bar to not doing qe should be high .
5. Why are you doing this ?