24

Aug

How to display colored source code with Explorer

Explorer "preview display" function that is not used very much

Windows is the most widely used operating system in the world.It is a file manager called Explorer who plays the center of file operation on this Windows.

Windows file managers are called "Windows Explorer" before Windows 8, and are called "File Explorer" after Windows 8.However, in Japanese, every era is often called "Explorer".

Explorer UI/UX has been changed according to the times.For example, Windows 11 Explorer has the following design.The design has been changed some more than the Windows 10 Explorer.

This Explorer has a "preview function" that displays the contents of the file inside the Explorer instead of the application.Windows 2000 and Windows Me file Explorers have its predecessor, and in earnest, Windows XP has introduced a function to display in the preview panel.

If you select a text file with the preview display enabled in the Explorer, the contents of the text file will be displayed like the next screenshot.You can check the contents without launching the application each time.

エクスプローラーで色付きソースコードを表示する方法

There are few types of files that can be displayed by default

However, this function has few types of files that are supported by default.Even if the text data that should be easily displayed, if it is not a corresponding extension, even if you select it, the preview will not be displayed as "preview is not available" as follows.

Explorer preview display is the body of application extensions.If you install an application that supports the Explorer preview display and enable the function, it will be possible to display it with Explorer.

Since Explorer is an application that is the center of file operation, it is some persuasive to some extent that the preview response was not expanded due to the historical background.If you display everything in the preview, the movement of the Explorer would have been slow and slow.Power consumption increases, and in some times it is more appropriate to not actively display preview displays.

However, from the current power of the personal computer, the preview display is not so burdensome.The convenience of enabling the preview display is more useful than the lightness obtained by disabling the preview display.In this state, it is a waste that the preview of Explorer has not progressed.

There are several ways to enable Explorer preview display, which is also a life hack, but the situation is changing.The use of Microsoft's developing PowerToys has made it easier to enhance the Explorer preview.

Microsoft PowerToys enhances the preview display

Microsoft has developed and provided tools called "Microsoft PowerToys" for advanced users.The utility is still in the development stage at the writing stage of this article, but it is an indispensable tool for power users.

Microsoft PowerToys can also be installed from the Microsoft Store, and followed the URL of the official website and GitHub..You may download the package from COM and install it.If you are using Winget, you can install it with the Winget command.

Microsoft PowerToys is being actively developed, so basically use the latest version.Since bugs and bug corrections are also made in detail, it is better to always update to the latest version and use it.

Microsoft is PowerToys Version 0.55.A new function has been added to 0.With the function of "enabling developer file preview", Microsoft PowerToys enables "File Explorer Add-ons" → "Preview Pain" → "Preview of Developer File (Example:".CPP,.PY,...) Is possible in.I think this setting is "on" unless it is explicitly disabled.

Microsoft PowerToys Version 0.55.This feature introduced in 0 should be noted as expanding the preview display of Explorer.This feature is very convenient, especially for users who often check the source code like developers.There is no need to open an integrated development environment or multifunctional editor to check the contents of the file.You can check the contents immediately.