Posts Tagged ‘changing the font in the command window’

How to set up the Windows Command Prompt for code demos

In this post I will share a few simple things you can do to set up your Command Window to help ensure a smooth code demo.

  • Change font size and colors
  • Set up the properties for copy and paste
  • Useful commands and keyboard shortcuts

Change the font size and colors

The default colors and font sizes are designed for someone working at their computer and may not provide good visibility when using a projector to display code to a larger audience.

Default appearance of command window

Default appearance of Command Window

You can edit the properties of the command window to change the font and colors.

Right click on the title bar of the window and select Properties.

Accessing properties menu on

Accessing properties menu on Command Window

  1. Select the Font tab.
  2. Increase the Size
  3. Select Bold fonts
Command Window Font Properties

Font Properties

I recommend leaving the font to Consolas, it is a good font choice for code demonstrations. For more tips on font selection see my post “How to rock a code demo – selecting your font”

You may also want to change the colour scheme, darker fonts on lighter colors can be easier to read in a well lit room.

  1. Select the Colors tab
  2. Set the Screen Text color
  3. Set the Screen Background color
Command Window color properties

Color properties

The end result is easier to read commands.

Command window appearance after changing font and color properties

Updated Command Window appearance

Set up the properties for copy and paste

Ah yes, the joys of copy and paste in the command window. Windows 10 brought some great improvements to the command window for fans of copy and paste (which is basically everyone!)

There are a few properties you probably want to ensure you have enabled. Just right click on the title bar and select Properties | Options

Command Window Options Property window

Command Window Options

  • QuickEdit Mode – allows you to use the left mouse button to highlight and select text in the Command prompt window and right click to select the text, then the next time you right click in the window it will paste the text. If you have Quick Edit mode disabled then you get
  • Enable Ctrl key shortcuts – allows you to use CTRL+C and CTRL+V to copy and paste
  • Filter clipboard contents on paste – will remove tabs, and convert smart quotes to regular quotes.
  • Enable line wrapping selection – Allows you to easily copy a command that wraps over multiple lines

Check out the post “How to copy and paste in cmd” by Baz Edwards for a more complete list of copy and paste options, or check out the post “the new features of the Windows 10 command prompt” by Martin Brinkmann for a more complete list of all the Command Window properties.

Useful commands and keyboard shortcuts

Knowing a few commands and keyboard shortcuts can make you look like a pro!

  • cls  clear the screen
  • Up arrow  scroll through previously issued commands
  • Right arrow recreate the previous command character by character
  • Toggle between full screen and windowed mode
  • Enter/Exit Mark mode – When you are in mark mode you can use the arrow keys to move your cursor around the window

34 Useful Keyboard Shortcuts for the Windows Command Prompt by @wjglenn if you want more keyboard shortcuts.

When I published this post, the most current Windows Command documentation was at . However, the documentation page has a warning indicating that they are not maintaining the page, so it is possible there have been updates since this page was last updated.