mattgcon
mattgcon

Reputation: 4848

Using directives in new files

Is it possible to have additional "using" directives automatically added to my new aspx.cs files so that I do not have to keep typing the same ones over and over again (i.e. custom namespace using directives)

Upvotes: 0

Views: 63

Answers (2)

Matt Brunell
Matt Brunell

Reputation: 10389

You don't have to type them in. When writing the code, type in the name of the class (without the namespace). Then hit CTRL+.. That will open up the resolve type intellisense helper. It will add the using statement to the top of the file. No scrolling necessary.

Upvotes: 0

Hans Passant
Hans Passant

Reputation: 941665

You can edit the files that are used by the template. Better yet, create your own. File + Export Template.

Upvotes: 1

Related Questions