从Eclipse迁移到Visual Studio 2008

Ton*_*nzi 21 eclipse visual-studio-2008

在Eclipse工作了3年之后,记住了所有优秀的快捷键和功能,我的新工作让我回到了Visual Studio.我在VS上找到了一些快捷键列表,但我正在寻找一个全面的指南,将Eclipse功能映射到Visual Studio.有没有人知道一个旨在帮助Eclipse用户过渡到VS的好教程?

Ton*_*nzi 38

由于缺乏关于此的信息,让我们开始一个社区维基的答案.请在此答案中添加有关迁移提示的其他信息.请在答案中避免使用ReSharper等第三方插件.

快捷键

+----------------------+---------------------+---------------------+
|   Command            |   Eclipse shortcut  |   VS.NET shortcut   |
+----------------------+---------------------+---------------------+
|   Delete line        |    Ctrl-D           |    Ctrl-L           |
|   Comment line       |    Ctrl-/           |    Ctrl-K-C         |
|   Uncomment line     |    Ctrl-/           |    Ctrl-K-U         |
|   Toggle editor tabs |    Ctrl-F6          |    Ctrl-F6          |
|   Goto Line          |    Ctrl-L           |    Ctrl-G           |
|   Goto Definition    |    Ctrl-Click or F3 |    F12              |
|   Find next          |    Ctrl-K           |    F3               |
|   Find previous      |    Ctrl-Shift-K     |    Shift-F3         |
|   Go backward        |    Alt-LeftArrow    |    Ctrl-minus       |
|   Go forward         |    Alt-RightArrow   |    Ctrl-Shift-minus |
|   Find usage         |    Ctrl-Shift-G     |    Ctrl-K-R         |
|   Rename             |    Alt-Shift-R      |    Ctrl-R-R         |
|   Refactor           |    Alt-Shift-T      |    none             |
|   Open Type          |    Ctrl-Shift-T     |    Ctrl-,           |
|   Navigate To        |    Ctrl-Shift-R     |    Ctrl-,           |
+----------------------+---------------------+---------------------+
Run Code Online (Sandbox Code Playgroud)


Jon*_*eet 9

这听起来很轻浮,但假设您将要使用C#,最重要的一点是:购买ReSharper.那时你会有很多你习惯的东西 - 集成单元测试,查找资源,查找类型(使用Camel-casing等),更好的Intellisense等等.

之后,了解最重要的键盘快捷键是Ctrl-.为"给我自动为你做的事情列表"和Alt-Enter这是相同的,但对于ReSharper的建议.

网上有各种ReSharper和VS快捷键备忘单 - 我怀疑你能尽可能快地找到它们:)