In Visual Studio 2015, using the light bulb action, we can simplify the refactoring a method from Asynchronous to Synchronous when it does not use any ‘await’ . In case you don’t have an await call inside the method definition, the IDE refactoring light bulb will show an indication and will give you hints to refactor . You can apply this refactoring to entire project or solution. IDE
Consider you have following method where you indented to make an async call to service, where as your service call is a synchronous ,
The yellow light build indicates that the method does not have any ‘await’ operator and it is suggesting to refactor it to a synchronous method.
You can apply this for this file, project or even entire solution, so that the refactoring can be done throughout.
Alternatively, if you have an ‘await’ operator, but you missed the async, if you can take help of light bulb operator to change.
Hope this helps !