Skip to content

ssolidus/windowsDevEnvironment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Developing on Windows

This is a guide on setting up an optimal development environment on Windows.

Shell and console emulator

The best environment setup is Babun, which is built on-top of Cygwin, but includes an easy-to-use package-manager, out-of-thebox Zsh support, and better compatibility.

Cmder is the best console emulator.

Babun

  • Get Babun
  • Run install.bat
  • To install packages, use pact <packagename>

Cmder

Installation

Configuration

Babun integration
  • Go to Settings>Startup>Tasks
  • Create a new task
  • Task parameters:

/icon "%userprofile%\.babun\cygwin\bin\mintty.exe" /dir "%userprofile%"

  • Commands:

%userprofile%\.babun\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/zsh.exe

Set font

Go to Settings > Main and select desired font. Consolas is my preferred monospace font on Windows.

Style
  • Set a preferred style under Settings > Features > Colors

My configuration:

Monokai

0. (background) set to 0 0 0

7. set to 202 202 202

Font rendering

Mactype

Mactype hooks provides freetype on Windows. Freetype is currently the best font-rasteriser, and is used on Linux, Android, iOS and macOS. Microsoft still uses ClearType, which is considerably worse, especially for alphabets other than Latin.

Installation

  • Get Mactype
  • Choose your desire loading mode. I prefer Load with MacTray with Standalone loading mode, as it allows you to toggle exclusions for incompatible programs.

Code editing

Please note that VSCode no longer supports MacType due to upstream deprecation of the --disable-directwrite flag. Consider using Sublime Text if you wish to use MacType with your editor

Installation

Install VSCode

Configuration

MacType integration

(Taken from VSCode Mactype Hack)

VSCode requires the following flags to be passed for MacType to work correctly:

  • Right-click the shortcut to VSCode > Properties
  • In the Target field, append the following string:

--disable-lcd-text --disable-gpu --disable-directwrite-for-ui --disable-font-antialiasing

Babun integration

  • Open VSCode
  • Open File > Preferences > Settings
  • Add the following to the USER SETTINGS section
"terminal.integrated.shell.windows": "C:\\Users\\tom\\.babun\\cygwin\\bin\\zsh.exe",

Releases

No releases published

Packages

No packages published