At my client, I got to know Console (also called Console2) – A Windows console window enhancement.
In this post I’ll describe what the tool is about, how you can install and configure it and how to add it to your “Open command window here” context menu.
This information handles a Windows 7 environment.
Taken from the Console website itself:
Console is a Windows console window enhancement. Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles
What I like the most about Console is the possibility to resize your console window on-the-fly and the multiple tabs. You can download the latest released or development version of Console on this link.
I have configured Console this way:
- Right-click in the Console window and choose “Edit -> Settings…” or press CTRL-S.
- In the Console tab, change the “Buffer size”. Set “Rows” to at least 500 and “Columns” to at least 200.
- In the Appearance tab, you can choose whatever font and font-size you like. Also, you can choose a font color. In my case, I chose a bright green color.
- Under Appearance -> More… hide the menu, toolbar and status bar. You can leave the rest by default.
- In the Behavior tab, check “Don’t wrap long lines”.
- Under Hotkeys, we’ll change some default key assignments:
- Change the “New Tab 1” hotkey to CTRL-T. Click on the hotkey, enter the hotkeys you want in the textbox and click the “Assign” button to save the new hotkey assignment.
- Set “Copy selection” to CTRL-X (Keep CTRL-C for aborting a running batch or application).
- The same way, set “Paste” to CTRL-V.
- In the Hotkeys -> Mouse tab, change the following assignments:
- Set “Copy/Clear selection” to “Left”.
- Set “Select text” to “Left + Shift”.
- Set “Paste text” to “Middle”.
- Lastly, make sure “Save settings to user directory” is checked and click the “OK” button.
For a quick setup, you can download my user settings right here. Right-click the link, choose “Save as…” and save it to your Console user directory.
Now, you have a shiny new console, but when you “SHIFT-Right Click” a folder to choose “Open command window here”, the old console window still appears. This can be changed using the registry.
Call “regedit” from the Start menu (You’ll need Administrator privileges for this). Find the registry key “HKEY_CLASSES_ROOT\Directory\shell\cmd\command” and modify the “(Default)” value to “<Console-installation-folder>\Console.exe -d %1” (excluding the quotes), for example “C:\dvl\tools\Console2\Console.exe -d %1”.
When you close “regedit” and try “Open command window here” again, you’ll see your shiny new console appearing.
Beware, installing Console and making all these adjustments will NOT change your CMD command. If you call CMD from within the Start menu, the old console will still be called!
I hope you’ll enjoy using your new console and that it may improve your developer productivity.