Tips for improving performance and development workflows
We've gathered a few tips that we hope will help to make your workflow more efficient and enjoyable. Do you have additional tips to share? File a pull request, using the "Edit" button above, or an issue, using the "Feedback" button below and we may add it to the list.
Note
If you are experiencing any performance issues related to developing on Windows, such as:
- Dev tools (e.g. compilers, linkers, etc.) running slower on Windows than expected.
- Runtime platforms (e.g. node, .NET, Python) running slower on Windows than other platforms.
- Your apps experiencing file IO/networking/process-creation related perf issues.
Please let us know by filing an issue in the Windows Developer Performance Issues repo!
Use shortcuts to open a project in VS Code or Windows File Explorer
You can launch VS Code from your command line into the project that you have open by using the command: code . or open your project directory from the command line with Windows File Explorer using explorer.exe . from Windows or your WSL distribution. You may need to add the VS Code executable to your PATH environment variable if this doesn't work by default. Learn more about Launching from the Command Line.

Use the Credential Manager to your streamline authentication process
If you're using Git for version control and collaboration, you can streamline your authentication process by setting up Git Credential Manager to store your tokens in the Windows Credential Manager. We also recommend adding a .gitignore file to your project.
Use WSL for testing your production pipeline before deploying to the cloud
The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.
WSL targets a developer audience with the intent to be used as part of an inner development loop. Let's say that Sam is creating a CI/CD pipeline (Continuous Integration & Continuous Delivery) and wants to test it first on a local machine (laptop) before deploying it to the cloud. Sam can enable WSL (& WSL 2 to improve speed and performance), and then use a genuine Linux Ubuntu instance locally (on the laptop) with whatever Bash commands and tools they prefer. Once the development pipeline is verified locally, Sam can then push that CI/CD pipeline up to the cloud (ie Azure) by making it into a Docker container and pushing the container to a cloud instance where it runs on a production-ready Ubuntu VM.
For more ways to use WSL, check out this Tabs vs Spaces episode on WSL 2.
Improve performance speed for WSL by not crossing over file systems
If you're working with both Windows and Windows Subsystem for Linux, you have two file systems installed: NTFS (Windows) and WSL (your Linux distro). For fast performance, ensure that your project files are stored in the same system as the tools you're using. Learn more about choosing the correct file system for faster performance.
Improve build speeds by adding Windows Defender exclusions
You can improve your build speed by updating your Windows Defender settings to add exclusions for project folders or file types that you trust enough to avoid scanning for security threats. Learn more about how to Update Windows Defender settings to improve performance.

Launch all your command lines in Windows Terminal at once
You can launch multiple command lines, like PowerShell, Ubuntu, and Azure CLI, all into a single window with multiple panes using Windows Terminal Command Line Arguments. After installing Windows Terminal, WSL/Ubuntu, and Azure CLI, enter this command in PowerShell to open a new multi-pane window with all three:
wt -p "Command Prompt" `; split-pane -p "Windows PowerShell" `; split-pane -H wsl.exe
Share your tips
Do you have tips for to help other developers using Windows improve their workflow? Please submit a pull request adding your tip to the page or file an issue if you'd like use to add a tip on a particular topic.
Do you have performance-related issues that you would like us to address? File it in the new WinDev Issues repo.
Thank you developers. We're listening and trying to improve your experience!
Maklum balas
Kirim dan lihat maklum balas untuk