Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm new to developing in C# in Visual Studio. While I realize that this question might be a bit subjective, still, what are the most useful extensions out there for a new C# developer using Visual Studio 2012? When I say useful, I mean tools that could guide me to writing better code, point out potential bugs, auto-correct, etc. Tools that would allow me to write better and clearer code while adhering to the style and naming conventions of C#.
As I grow as a C# developer, I feel that I would probably start getting irritated with such auto-correcting tools, but right now it would be really useful. I downloaded Resharper and that seems to be pretty cool and does what I'm talking about. I have also looked at other extensions in the Visual Studio Gallery, but there are so many and it becomes a bit overwhelming.
Any help would be greatly appreciated!
thanks,
Justin
I recently fell in love with Flow.
Apart from that some people would suggest Resharper while others don't. I belong to the first category.
First : Resharper from JetBrains, (paid) this tool totally increase coding speed and are simply comfortable. If you're familiar with InteliJ or PyCharm - you'll feel like home.
Second : I recommend using Productivity Power Tools from Microsoft.
And for manage packages and libraries NuGet
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Does anybody know whether it is possible to write a plugin for visual studio 2010 to implement a different key mapping (emacs in particular) for the C# editor? Are there any examples?
EDIT: Lo and behold, Microsoft has just announced an Emacs emulation extension for VS2010 http://blogs.msdn.com/b/visualstudio/archive/2010/09/01/emacs-emulation-extension-now-available.aspx..
It's definitely possible, although I've only heard about Vim implementations as mentioned in this thread: Free vim add-in for Visual Studio?..
It sounds like you're trying to add an emacs emulation mode to Visual Studio. If so that's certainly possible although it does require a considerable amount of work to be done.
It's hard to describe everything in a simple SO question. However there is a large open source Vim emulation mode available on github you can use as a starting point for understanding the work that needs to go into this
http://github.com/jaredpar/VsVim
You might check out XKeyMacs as a more general solution (in terms of what programs it works with) to getting an Emacs interface:
http://www.cam.hi-ho.ne.jp/oishi/indexen.html
I've got this setup to work on VS6, VS.NET, VS2005, VS2008, and VS2010. It also works for pretty much anything that uses "standard" Microsoft keystrokes. You can even apply it to Internet and File Explorer, Firefox, Eclipse, CVI, etc.
It is, however, only for getting an Emacs interface, not a general purpose keyboard remapper.
There is now a plugin by Microsoft to give Emacs keys to VS2010:
http://visualstudiogallery.msdn.microsoft.com/en-us/09dc58c4-6f47-413a-9176-742be7463f92
Of course, this won't work with the Express versions as they don't handle plugins.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Where can I learn to refactor code?
Books.
See http://www.amazon.com/Refactoring-Improving-Design-Existing-Code/dp/0201485672/ref=sr_1_1?ie=UTF8&s=books&qid=1279262199&sr=1-1
You can learn on the job by using a refactoring tool such as Resharper and asking yourself, why is it suggesting this change? It will show you places where you can make your code simpler as well as which code is not being used any where. One you have taken this first step, it is easier to see what your code is doing and then you can perform your manual refactoring as suggested by the other answers.
Refactoring - C# Tutorials | Dream.In.Code
http://www.dreamincode.net/forums/topic/77242-refactoring/
C# 2.0 Code Refactoring
http://www.premier-club.com/codemag/Article/20143
See Martin Fowler's material: http://www.refactoring.com/
His articles are very good, recommended to anybody who wishes to learn beyond the basics
of just writing code.
Robert Martin's blogs (Uncle Bob) are also excellent.
In practise, choose any IDE which supports common refactoring like Eclipse or IntelliJ (latter is my favorite). But it's just a tool -- it helps to learn what are the reasons why a piece of code should be refactored and how.
Fowler's book is a good place to begin, but before doing any refactoring you should make sure you have automated tests for your code. Refactoring without tests is risky at best.
Visual Studio supports the most common refactoring operations, but you may also want to take a look at Resharper, which adds additional tools.
Head over to LosTechies and have a look at the ebook 31 days of refactoring, its an easy way to start.
Then as others here have said, read Fowler's book when you have the time.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Good Day
I'm self training myself in visual c#, I need some advice in learning it as quickly as possible, Is there a good study-guide or book that I can purchase for ms visual c#
Have a look at these:
Quickest approach to learn C# programming
https://stackoverflow.com/questions/72893/whats-the-best-way-to-learn-c-quickly
https://stackoverflow.com/questions/287927/best-way-to-learn-c
Start learning C# without knowing C?
... and lot's of other similar questions!
Quickest approach to learn C# programming
Best way to learn C#
Head First C#
Head First C# is a complete learning
experience for object-oriented
programming, C#, and the Visual Studio
IDE. Built for your brain, this book
covers Visual C# 2008, Visual Studio
2008, and the .NET Framework 3.5, and
teaches everything from language
fundamentals to advanced topics
including garbage collection,
extension methods, and double-buffered
animation. You'll also master C#'s
hottest and newest syntax, LINQ, for
querying your data in .NET
collections, SQL databases, and more.
A great way to learn any language is to pick some project that you're interested in and that sounds feasible, but perhaps just outside your level of knowledge/expertise/comfort, then implement it. This will allow you to learn while doing, and not only while doing, but while doing something you're interested in. Being interested in what you're doing will increase your engagement and your hunger for learning more about the language so that you can implement your project.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking for some (preferably) online tutorials on making controls with 'Rich design-time support'
By Rich design time support i mean like how the menustrip works on a form and such.
Any links to websites, good books or code samples (c# or vb.net) would be great.
You can start with Dissecting A C# Application which goes into many aspects of creating SharpDevelop, C# IDE written in .NET. This covers many aspects of the designer architecture and it is free in a PDF. However, the PDF is hard to find (original links no longer work, but I believe this is a valid copy).
While that will get you started on the ins and outs of the designer, it probably doesn't go into detail on some of the more interesting features such as actions and tasks. For this, MSDN has some extensive information and examples (it didn't used to).
Finally, I find the best resource to be .NET Reflector. Using this tool to look at how Microsoft has done it in various places within the framework has been a great learning exercise when working in design-time support areas. Find a control that does what you want and then go see how it does it.
All of these resources are free, however your time is not. I have found that design-time support can be a breeze in some areas but a complete nightmare in others. Good luck.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
We have a project with over 500,000 lines of VB.NET that we need to convert to C#. Any recommendations, based on experience, for tools to use? We are using Visual Studio 2008 and we're targeting 3.5 .
I would concur with the comment. You have 500,000 lines of tried and true VB.NET code. Why on earth would you waste any time changing that? No one says that you can't write all new components in C#.
I would consider not worrying about a tool and instead ask yourself, truly, why you are doing this?
Reflector will decompile the IL and produce C# for you, it will be rough, but a decent start.
Did this eval a while back. You will find a lot of "free" solutions that are horrible at edge cases. This commercial product http://www.tangiblesoftwaresolutions.com is by no means perfect; but, was the best we could find at the time doing real conversion tests. Note: I am speaking only as a customer. If someone has found a solution that in real-world use produces better conversions than this, please let me know.
SharpDevelop has a converter built-in IIRC.
The converter from Telerik works well.
http://converter.telerik.com/
http://converter.telerik.com/batch.aspx
There used to be an add-in to Reflector which creates a complete Visual Studio solution. However, I don't know if it's still available or working, now that Red Gate has taken over Reflector.
I've used this site for a while now for some of my smaller conversions. It has been quite reliable.
According to the site, their converter is based off an open source IDE that has the converter built in, so you might try the "source site" as well.