Editor Enhancements?
I'm learning C# after spending many years developing Java. I've grown accustomed to the power of the eclipse IDE and I'm finding myself frustrated with the VS editor.
That leads to a few question:
- Is there a way to use an external editor (such as eclipse) from VS? I love the visual designer and the other tools, but the editor itself is just a small step up from notepad.
- Is there a way to "drill down" into classes? In Eclipse I can press F3 over a class reference and the editor will open that classes code.
- Can I add my own templates to the intellisense? I've grown so accustomed to adding templates into eclipse that I'm feeling like a fish out of water by actually having to hand code things like loops and constant declarations!
- Is there any way to enhance how the code formatter works? I haven't seen a way to specify something like "only two blank lines between methods".
Again, I'm just learning C# and VS so its quite possible I'm missing something. Thanks!
[1041 byte] By [
jb6494] at [2008-2-13]
1. I don't know of any way, and never felt the need to. Maybe the following answers change your mind ;)
2. Right-click on the class or variable and select "Go to definition", or press F12.
3. This is called code snippets, and of course you can add your own. For example, to create a for loop, type "for" and press Tab twice, then fill in the blanks. Code you need very often can also be placed in the toolbox.
4. Everything regarding the formatter is in Tools -> Options -> Text Editor -> Language -> Formatting.