从 Eclipse 迁移到 Visual Studio 2008

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/777562/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 13:40:05  来源:igfitidea点击:

Moving From Eclipse to Visual Studio 2008

eclipsevisual-studio-2008

提问by Tony Lenzi

After working in Eclipse for the past 3 years and memorizing all of the great shortcut keys and features, my new job has me moving back to Visual Studio. I've found some listings of shortcut keys on VS, but am looking for a comprehensive guide mapping Eclipse features to Visual Studio. Does anyone know of a good tutorial aimed at helping Eclipse users transition to VS?

在过去 3 年里在 Eclipse 中工作并记住了所有很棒的快捷键和功能之后,我的新工作让我回到了 Visual Studio。我在 VS 上找到了一些快捷键列表,但我正在寻找将 Eclipse 功能映射到 Visual Studio 的综合指南。有谁知道旨在帮助 Eclipse 用户过渡到 VS 的好教程?

回答by Tony Lenzi

Because of the lack of information out there on this, let's start a community wiki answer. Please add additional information on migration tips to this answer. Please avoid 3rd party plug-ins such as ReSharper in the answer.

由于缺乏这方面的信息,让我们开始社区维基回答。请在此答案中添加有关迁移提示的其他信息。请避免在答案中使用 ReSharper 等 3rd 方插件。

Shortcut Keys

快捷键

+----------------------+---------------------+---------------------+
|   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-,           |
+----------------------+---------------------+---------------------+

回答by Jon Skeet

This will sound flippant, but assuming you're going to be using C#, the most important point is: buy ReSharper. At that point you'll have a lot of what you're used to - integrated unit tests, find resource, find type (with Camel-casing etc), better Intellisense and more.

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

After that, learn that the most important keyboard shortcuts are Ctrl-. for "give me the list of things you can do for me automatically" and Alt-Enter which is the same but for ReSharper suggestions.

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

There are various ReSharper and VS shortcut key cheat sheets on the web - I suspect you can find those as quickly as I can :)

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

回答by Wagner da Silva

I've been slowly customizing my Visual Studio 2008 to create a few tricks like when I used Eclipse. I recommend these two as a starting point:

我一直在慢慢地自定义我的 Visual Studio 2008 以创建一些技巧,就像我使用 Eclipse 时一样。我推荐这两个作为起点:

  1. Rock Scroll - Text Highlight with an enhanced scroll bar. Very neat tool to help you visually locate where a variable is used along the code: http://microsoftdev.blogspot.com/2008/05/rock-scroll-visual-studio-plugin.html

  2. Quick Open File - create a shortcut that you like and voila, you can quickly access any file in your project: http://kutny.net/vsopen/

  1. Rock Scroll - 带有增强滚动条的文本突出显示。非常简洁的工具,可帮助您直观地定位代码中使用变量的位置:http: //microsoftdev.blogspot.com/2008/05/rock-scroll-visual-studio-plugin.html

  2. 快速打开文件 - 创建您喜欢的快捷方式,瞧,您可以快速访问项目中的任何文件:http: //kutny.net/vsopen/

I've blogged about this here: http://www.wagnerdanda.me/2010/08/visual-studio-tips-like-eclipse/

我在这里写了博客:http: //www.wagnerdanda.me/2010/08/visual-studio-tips-like-eclipse/