Layout of Powershell

Powershell is a more powerfull shell than CMD in Windows. However, the layout of powershell in Windows is very ugle, especially the default font. In order to change the font of powershell, we need to do several works.

Descipline

Actually the font can be change in the powershell if we click the top left corner of the powreshell interface. While if the CodePage is 936(Chinese), you can only change the font of powershell among several Chineses fonts, which are not well performed in the powershell.

So we need to find some way to change the CodePage of powershell to 437(English), then we can change the font to some English font like Consolas.

In order to change the default page to another, there are two steps need to finish that. One is for the powershell launched by Win+R, and another is the powershell launched by the start menu. It is because the software launched by shortcut follows other disciplines which I don’t know much.

Change for the Win+R powershell

  1. Open the Win+R, and input regedit
  2. Navigate to \HKEY_CURRENT_USER\Console\%SystemRoot%_System32_WindowsPowerShell_v1.0_powershell.exe
  3. Create/Change the CodePage of type DWORD to decimal 437

Change for the shortcut powershell

  1. Right click the powershell in start menu and go to the file location
  2. Right clikc the ico and go the properties
  3. Add the following words to the end

-NoExit -Command "chcp 437; cls"

The command above means the powershell will run the two commands automatically. The chcp 437 means to swtich the Codepage to 437; and the cls means to clear the powershell.