DEV Community

Cover image for Setting up a .NET Development Machine in 2020

Setting up a .NET Development Machine in 2020

Jeremy Morgan on January 04, 2020

I recently spilled tea all over my laptop. Not proud of it. It's a laptop I'm going to be using for a presentation next week, and I had no other Wi...
Collapse
 
danstur profile image
danstur

"And yes I should just use PowerShell to do all of this."
Indeed. A Powershell script together with chocolatey for most of the tools not only means you only have to do this work once, it also makes sure you can't forget anything or misconfigure it.

Chocolatey then also makes it trivial to keep all your tools up to date. Definitely worth the marginally higher effort the first time you set it up.

Collapse
 
asears profile image
Andrew Sears

Great list. I just went through this with my new home-dev PC AND a Macbook Pro, and putting together a bigger list and some cross platform tools. Will try out a couple of these, especially NimbleText!

I would recommend Azure Data Studio, it's a bit more lightweight than SSMS, supports Postgres and notebooks and lives in the familiar Electron / VSCode interface.

Collapse
 
jeremycmorgan profile image
Jeremy Morgan

Thank you! I haven't tried Azure Data Studio yet, but I'll check it out now!

Collapse
 
bjarteao profile image
Bjarte Aune Olsen

Not specifically for coding, but I need Ditto and AutoHotkey as well.

Ditto is a clipboard manager, for all the times you need to copy more than a single string.

AutoHotkey I have set up to have hotkeys for some special characters, like {} and [], that are cumbersome to type on my Norwegian keyboard layout.

Collapse
 
danstur profile image
danstur

Why don't you use a different keyboard layout when coding? I'd go insane if I had to program with a German keyboard layout.

It's trivial to set up multiple keyboard layouts under Windows and you can switch between them with a single keyboard shortcut. I'm sure similar things work for Mac and Linux too.

Collapse
 
bjarteao profile image
Bjarte Aune Olsen

Yes, that's probably an easier solution, as it requries less setup.

I have tried coding using US keyboard layout a few times, but I have given up every time, because it requires that I re-learn the location of all special characters on the keyboard. It doesn't seem to be worth the effort, but probably would have been if I had done that from the beginning of my coding career.

Collapse
 
lightmanca profile image
lightmanca

I am surprised you didn't mention good ol Notepad++. It's an editor I can't do without.

Collapse
 
danstur profile image
danstur

Why use notepad++ in 2020 when there's vscode? I can't think of anything that npp could do that vscode can't and that with a soo much better plugin system.

Collapse
 
yerac profile image
Rich • Edited

Honestly, for quick editing of config files I prefer having a super lightweight text editor like Sublime or NPP available. VSC is brilliant, but has higher overhead which can get worse with plugins.

For example, opening a remote config file via VSC takes around 2-3 seconds, Sublime is instant. This is a cold load though, once VSC is running its almost the same

I'd say it also depends on the size and format of the file. I have crashed VSC opening a 30MB JSON file before

Collapse
 
lightmanca profile image
lightmanca

I use notepad ++ for general file editing and viewing. Not coding.

I'll use it as a scratch area where I can hold some code, formatting Json and xml I just want to view. Most of the time it's for text I don't want a file associated with. It's very lightweight for all these features.

I've only used vs code a few times. Maybe it would suit my needs. But key thing here is I rarely save the data I put in np++. It's just a scratch area, where I can format results from various web api calls and store other things I need for temporary bits of time.

Thread Thread
 
jeremycmorgan profile image
Jeremy Morgan

The only thing I don't like about VS code is how it likes to be tied to a folder or project. With something like Notepad++ or Sublime you can just open text files spread all over your hard drive. It's a very minor thing and nowhere near a blocker but it feels kind of weird from a UI standpoint. Other than that I love it.

Collapse
 
bjarteao profile image
Bjarte Aune Olsen

VSCode takes ages to open, I would never use that as the default editor of txt or json files. That's where Notepad++ shines.

Collapse
 
nicknnator profile image
Nick James

Great write up! There is always so much time between new machines for me that I always forget the specifics (the magic) that I had to perform to get certain things to work.

Anyone have any advice for setting up an Oracle ODP.Net for Visual Studio environment? I can never seem to get Oracle right on the first try.
Thanks,
Nick

Collapse
 
jetersen profile image
Joseph Petersen • Edited

Have a look at my dotfiles :)

github.com/casz/dotfiles

I customized PowerShell so it behaves much like I used to do zsh or fish setups.

Collapse
 
ajimerasrinivas profile image
Srinivas Ajimera

Impressive blog with lovely information. Really very useful article for us thanks for sharing such a wonderful blog.

espirittech.com/dot-net-applicatio...

Collapse
 
ucavalcante profile image
Ulisses Cavalcante

Basically the same setup as me, i only add angular cli throught npm and angular extensions in vscode, and tks for LinqPad tip i will try that.

Collapse
 
meligy profile image
Meligy

Glad to see I'm not the only one who actually likes kdiff!

Collapse
 
tyrionlann62154 profile image
tyrion lannister

Useful Information. Thanks for sharing about dot net application development