Skip to content

Instantly share code, notes, and snippets.

@adrianmgg
Last active October 21, 2021 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianmgg/036f6825dead866a50eaf74f36a6253f to your computer and use it in GitHub Desktop.
Save adrianmgg/036f6825dead866a50eaf74f36a6253f to your computer and use it in GitHub Desktop.
windows registry stuff
Windows Registry Editor Version 5.00
; add 'file without extension' to file explorer's right click > new > ... dialog
; .file_without_extension is a dummy name since afaik we need to have some extension
; associated in order to add it to the menu.
[HKEY_CLASSES_ROOT\.file_without_extension]
@="FileWithoutExtension"
[HKEY_CLASSES_ROOT\.file_without_extension\ShellNew]
; create an empty file (as opposed to from a template)
"NullFile"=""
[HKEY_CLASSES_ROOT\.file_without_extension\ShellNew\Config]
; omit extension on name of created file
"NoExtension"=""
[HKEY_CLASSES_ROOT\FileWithoutExtension]
; used for name in 'new' menu
@="file without extension"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment