Default view for .cs files; code completion for try...catch

D

DC

Hi,

this is somehow related to the fact that the main class in my .cs file
inherits from another file: the VS .Net 2003 thinks it is best to open
this file in designer mode then and also adds a .resx file to the .cs
file. But I want this file to always open in code view. Any clue?

I heared it is possible to automatically add catch handlers once
you type "try {"... but I did not see something like that - does this
feature exist at all?

TIA, regards

DC
 
M

Miha Markic [MVP C#]

Hi DC,

Right click on file in solution explorer, select Open With... and select
Visual Basic or CSharp editor option.
Note that this will affect all files - they will all open in code instead of
designer.
 
D

DC

Thank you, Miha!

DC

Miha Markic said:
Hi DC,

Right click on file in solution explorer, select Open With... and select
Visual Basic or CSharp editor option.
Note that this will affect all files - they will all open in code instead of
designer.

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

DC said:
Hi,

this is somehow related to the fact that the main class in my .cs file
inherits from another file: the VS .Net 2003 thinks it is best to open
this file in designer mode then and also adds a .resx file to the .cs
file. But I want this file to always open in code view. Any clue?

I heared it is possible to automatically add catch handlers once
you type "try {"... but I did not see something like that - does this
feature exist at all?

TIA, regards

DC
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top