<p>I think it's associating my Web Service's CS files with the related ASMX files.  But whatever's happening, I can't double-click to open the CS files - I have to "view Code" or it opens in the designer.  </p>

<p>Anyone know how to turn off this automatic behavior?  I just want to edit the code!</p>

[{'answer_id': 79450, 'author': 'Stephen Wrighton', 'author_id': 7516, 'author_profile': 'https://Stackoverflow.com/users/7516', 'pm_score': 0, 'selected': False, 'text': '<p>In the Solution Explorer view, click the "Show All Files" icon. This will put "+" symbol next to each of your files. Click the + and it will expand to show the .CS file which holds the ASMX\'s code. At this point, double click that file instead.</p>\n'}, {'answer_id': 79562, 'author': 'Aaron Cooper', 'author_id': 14822, 'author_profile': 'https://Stackoverflow.com/users/14822', 'pm_score': 0, 'selected': False, 'text': '<p>For some reason VS2005 seems to have this a bit backwards when it comes to webservices.  To open a webservice in code view, double-click the .asmx file, not the .asmx.cs file.</p>\n\n<p>I guess it makes a bit of sense, as there\'s nothing to "design" when it comes to a webservice, but it\'s counterintuitive if you\'ve been working with .aspx files.</p>\n'}, {'answer_id': 87196, 'author': 'Rasmus Faber', 'author_id': 5542, 'author_profile': 'https://Stackoverflow.com/users/5542', 'pm_score': 5, 'selected': True, 'text': '<p>Try right-clicking, select "Open with...", mark "CSharp Editor" and select "Set as Default".</p>\n\n<p>That works for avoiding the WinForms Designer.</p>\n'}, {'answer_id': 714418, 'author': 'Brian Ensink', 'author_id': 1254, 'author_profile': 'https://Stackoverflow.com/users/1254', 'pm_score': 3, 'selected': False, 'text': '<p>I found this question when trying to deal with a similar problem.  I had a C# class in a file and whenever I double clicked on the file it would try to open in design mode but design mode was meaningless for this class.  I just want to see the code.</p>\n\n<p>I found that adding the [System.ComponentModel.DesignerCategory("")] attribute to my class fixed this.</p>\n'}, {'answer_id': 3159967, 'author': 'AMissico', 'author_id': 163921, 'author_profile': 'https://Stackoverflow.com/users/163921', 'pm_score': 0, 'selected': False, 'text': "<p>In my experience, if you find that the wrote editor, that is the non-default editor, is opening when double-clicking on a file within the <strong>Solution Explorer</strong> then something is wrong with the underlying project's <strong>User Options</strong> file (.user) or the solution's <strong>User Options</strong> file (.suo). (I am not sure which, but I suspect the settings are stored in the .suo file.) Deleting the the .suo and all project .user files solved the problem.</p>\n\n<p>I personally, set the <strong>Form Editor</strong> as my default editor for forms at the beginning of a project. After the forms are stable and require less user-interface design changes, I switch the default editor.</p>\n"}]
['https://Stackoverflow.com/questions/79434', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/7104/']