c# - Prevent from autoformatting after using statement -


i have code:

var = 2; 

i type using(...){} above declaration i`m getting:

using(...) { }     var = 2; 

visual studio adds tab a declaration. want prevent this, how can achieve ?

edit: added braces don`t want have a inside using.

that because using statement executes codes whitin scope variable whitin using exists. correct syntax using is:

using (var disposeme = new disposeme()) {     // here use disposeme object during lifetime     var = 2; } // here disposeme gets disposed. 

with regards, john


Comments

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -