Use a fixed-width font (like consolas) for better script readability in ConfigMgr in all text-boxes where you type or paste scripts
There are several areas in the Configuration Manager Console with text fields for entering or pasting scripts. The Scripts feature, CI Detection and Remediation, Application Detection, etc. The font used in these areas is not script friendly. Tabs and spaces are hard to discern and the scripts look downright messy. Using Consolas or another monospaced font would preserve the nice looking formatting you've just copied out of somewhere like VS Code, and would make the script easier to read when you go to look at it later in the ConfigMgr Console. Please change it :)
Thank you for this great idea. This is something we are looking improve for Configuration Manager 2010. The 2007 Technical Preview now uses fixed-width fonts in the following areas of the console:
- Application scripts
- Configuration item scripts
- WMI-based collection membership queries
- CMPivot queries
- Task Sequence PowerShell scripts and command lines
Some additional fixes have also been made to further improve these scenarios:
- Resizable windows for viewing/entering scripts
- Using horizontal scrolling instead of word wrapping for scripts
Please try it out and send us a frown if there’s anything we missed or any other areas you’d like to see fixed width font support.
This is a great idea, although I still think an 'open in editor' function would be even better.
Aaron Young commented
Example of the readability difference. Top is default 'Microsoft Sans Serif, 8pt', which is a variable width font.
Bottom is Consolas 9pt - fixed width for better readability. Imagine if your powershell console used Microsoft Sans Serif (Shudder....)
Michael H. commented
Super annoying - I have to copy it into VS Code sometimes to make my edits just to be sure that it's formatted the way I want.
Something like Consolas would be great.