TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Windows Dev Setup?

20 点作者 iansowinski大约 3 年前
I just landed a job where the only OS to choose from is Windows. As an experienced Linux and macOS user, it sounds challenging, but I see it as an opportunity. Is there anybody with similar experience (web apps development on Windows)? Can you share some bits of advice, tools, and setup?

15 条评论

majkinetor大约 3 年前
Its better then ever.<p>1. Use Chocolatey (winget is still new). You can setup everything via it, and I mean everything - node, postgre, docker, vscode, all browsers, selenium and drivers etc.<p>2. Learn Powershell, but learn it really good. Adopt PowerShell build system Invoke-Build<p>3. Install better terminal - ConEmu or Windows terminal<p>4. Enrich Windows using FOSS and cross platform tools: choco install copyq, flameshot, less, fzf, paint.net, git, tortoisegit, winscp, kitty, screentogif, sysinternals, wiztree, gsudo, lockhunter, signal, viber, slack<p>5. Disable Windows Defender and use some debloater (controversial, but I do it, and system is at least x2-x5 faster). I use <a href="https:&#x2F;&#x2F;github.com&#x2F;W4RH4WK&#x2F;Debloat-Windows-10" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;W4RH4WK&#x2F;Debloat-Windows-10</a> along with ShutUp10 tool.<p>6. Install the best search engine in the world: cinst everything<p>Enjoy, its awesome.
评论 #31095491 未加载
评论 #31096869 未加载
评论 #31121063 未加载
drakonka大约 3 年前
After years of Fedora I now primarily run Windows because WSL just does everything I need. I prefer to still work in WSL Linux env and have my IDEs running through Windows (mostly Visual Studio Code and Goland). It&#x27;s a nice setup for me because both OSes are just seamlessly available.<p>Having said that I&#x27;ve had so many sleep&#x2F;power management problems with Windows with my new ThinkPad that I nearly just switched back to Fedora before finding a configuration that more or less seems to work.
mematic大约 3 年前
I run Arch Linux in Hyper-V on 11 Pro.<p>Services (NGINX, MariaDB, PHP&#x2F;PHP-FPM, etc.) are within Arch.<p>Project files are in Windows, mounted as an NFS share within Arch.<p>Editing and committing files mostly from Windows, Atom and git configured for LF.<p>Executing tasks, Bash scripts and such, from Arch via SSH.<p>I tend to duplicate tasks in Batch or Powershell for cross-compatibility.<p>And use the same structure for Electron builds on the Windows side with WIX.<p>Only complaint is VM performance.<p>I&#x27;ll probably swap to a bare-metal Linux machine, using the same approach, soon.
Phreaker00大约 3 年前
WSL2 with docker containers should bring you quite close to the environment you&#x27;re used to. Added benefit of working from containers locally is the server parity in OTAP
smackeyacky大约 3 年前
You can avoid the awfulness of chocolatey by sticking with WSL2. Install that, docker desktop, windows terminal and vscode, voila you are back in linux land and can completely avoid powershell and windows broken file names.
评论 #31097120 未加载
trhoad大约 3 年前
All I&#x27;ll say is, good luck. I was&#x2F;am in the same boat and unfortunately for me it&#x27;ll be the difference between staying in the role and potentially moving on in the future. WSL2 is decent, but there are some fundamental incompatibilities that in some cases make it unusable in a professional context. Everything feels a bit second rate to MacOS&#x2F;Linux development - tooling, hardware, OS design, peripherals. Ultimately, I&#x27;d do almost anything to go back to a Mac and feel like I&#x27;m working at 100% efficiency again.
beart大约 3 年前
I prefer scoop instead of chocolatey. Also winget just doesn&#x27;t feel like a finished product.<p><a href="https:&#x2F;&#x2F;scoop.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;scoop.sh&#x2F;</a>
评论 #31096829 未加载
gepardi大约 3 年前
WSL2 all the way. I didn&#x27;t like Chocolatey.<p>Just make sure that your actual code&#x2F;project files are also inside of your WSL (<a href="https:&#x2F;&#x2F;dev.to&#x2F;ajeet&#x2F;so-you-have-installed-windows-subsystem-for-linux-let-s-learn-how-to-move-files-inside-of-linux-root-system-4kbo" rel="nofollow">https:&#x2F;&#x2F;dev.to&#x2F;ajeet&#x2F;so-you-have-installed-windows-subsystem...</a>)<p>There&#x27;s a thing called WSL Bridge that VS Code hooks into, or uses somehow in order to run VS Code in Windows, but it is accessing and running code that&#x27;s inside the WSL.<p>I used various terminal programs but the most recent one I used was Windows Terminal: <a href="https:&#x2F;&#x2F;www.microsoft.com&#x2F;en-us&#x2F;p&#x2F;windows-terminal&#x2F;9n0dx20hk701?activetab=pivot:overviewtab" rel="nofollow">https:&#x2F;&#x2F;www.microsoft.com&#x2F;en-us&#x2F;p&#x2F;windows-terminal&#x2F;9n0dx20hk...</a><p>This alleviated many issues I had and I ended up getting my whole team onboard with the same setup.<p>We were running Angular apps, and also vanilla JS stuff with Bootstrap, Gulp, Webpack, Live Server.
duped大约 3 年前
I think the best solution is to ask your coworkers how they provision their dev environments, because windows dev is such shit that you don&#x27;t want to struggle to build and run other peoples&#x27; code in the office.
veesahni大约 3 年前
If you can build&#x2F;run code in a linux environment:<p>wsl2 gives you linux vm running in hyper-v alongside windows.. the vm pretty much has direct hardware access and is fast. From here, you can install linux based git, rsync, etc ... and the vm has full access to the windows filesystem.<p>vscode has a nice wsl extension which runs in client&#x2F;server mode with server living in the linux vm and client on windows.<p>wsltty is closest feeling simple terminal, with translucency, etc.<p>... with this setup, i got rid of cygwin, vagrant, virtualbox, etc.
pjmlp大约 3 年前
Visual Studio Professional, Eclipse&#x2F;Netbeans, VS Code.<p>latest PowerShell, Windows Terminal, WinMerge, Notepad++, ToirtoiseGit&#x2F;SVN, Paint.NET.<p>Office, FF, Chrome, EdgeChrome.<p>Everything else is project specific.
评论 #31096595 未加载
burntoutfire大约 3 年前
A simple tip: with WSL&#x2F;WSL2, you can run XServer process in Windows and your IDE launched inside WSL will show up as just another window in your Windows task bar (you have to point it at the Xserver). It completely eliminates the annoying double desktop&#x2F;double taskbar setup that&#x27;s normally a drawback of using a VM.
eatonphil大约 3 年前
Powershell, Windows Terminal and oh-my-posh get you pretty close to zsh on Linux. I&#x27;ll comment back with a few more tweaks I had to make to powershell to get closest to the Linux experience.<p>But my biggest gripe is not having tmux. There are some window&#x2F;tab&#x2F;pane management shortcuts in Windows Terminal but they&#x27;re not as good as tmux (yet).
评论 #31096203 未加载
daviddever23box大约 3 年前
winget is your friend, though you will find yourself living between Windows PowerShell and Git Bash most of the time.
JohnHaugeland大约 3 年前
Git bash and you&#x27;re done