Text Preview issues


Skeptic Mike

Member
Member
Local time
3:12 AM
Posts
8
OS
Windows 11 23H2 Pro
Under Windows 10 the font face and size for the text preview were set from the last saved value from Windows Notepad. This has been changed in Windows 11 (23H2). It's now controlled by the values in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Notepad\DefaultFonts
iPontSize is the point size multiplied by 10. Changing the value will be reflected in any preview pane by refreshing the view.

So, the default size is no longer under user control! When viewing any individual preview Control-ScrollWheel will change the text size, but revert for the next preview.

I know that vbScript is deprecated, but the preview feature has been removed from the file type, which seems premature whilst the feature is still installed. You can either reinstate it for the current user with the following reg file:

Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Classes\vbsfile\shellex\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
@="{1531d583-8375-4d3f-b5fb-d23bbd169f22}"

or simply set the PerceivedType of .vbs files as text. I do this for other file types I know are text when Windows doesn't. As well as providing a text preview you will get an Edit option in the context menu for any file type. As an example setting this for .cs files:
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\.cs]
"PerceivedType"="text"
 
Windows Build/Version
Window 11 Pro 23H2

My Computer

System One

  • OS
    Windows 11 23H2 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI
    CPU
    i3-1215U
    Memory
    8GB
    Monitor(s) Displays
    Dell S2721
    Screen Resolution
    3840x2160
    PSU
    External 65W
    Keyboard
    Cherry mechanical (Blue)
    Mouse
    Microsoft
    Browser
    FireFox
    Antivirus
    MS
Back
Top Bottom