In VB.net is there an option to force generation of the counter variable in the "Next" statement? -


visual basic .net automatically inserts "next" statement when enter "for" statement; e.g., if type:

for integer = 1 10 

a next automatically inserted, code looks like:

for integer = 1 10  next 

it optional put counter variable ("i" in above) in next statement, read:

next 

i'd make default, helps when 1 has nested statements. can't find in visual studio settings this; maybe it's partly buried somewhere in intellisense. thought perhaps someone out there has figured out.

you want modify .snippet file associated pattern. 1 looking is, default:

visualstudioinstalldirectory\vb\snippets\1033\common code patterns\conditionals , loops\foreachnext.snippet

you can track down exact location looking in

tools > code snippets manager..., select visual basic language , browse code patterns - if, each, try catch, property, etc - file location listed there.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -