0

I use Docker for Windows and I work with a lot of Dockerfiles. They're an extensionless file which can be read and opened in any text editor such as Sublime or Notepad.

Related questions such as this one talk about the same problem but for every extensionless file. I want to open only the Dockerfiles with Sublime, but not any other extensionless files.

Is this doable? Meaning, can I open files with specific names with a specific software application by default?

A requirement is that I can't add an extension to a Dockerfile, even if Docker can still work with it. To keep it short, this is an inflexible company standard.

Blind Spots
  • 2,607
  • 1
  • 16
  • 21
Cris
  • 151
  • 1
  • 1
  • 4
  • Without an extension, what else is going to differentiate the file type? Even Apple mostly gave up on resource forks containing a creator code/file type & went with extensions, 20 years ago. [Their modern equivalent is to hide the extension for certain known package types, similar but not quite the same as Windows.] – Tetsujin Nov 30 '22 at 18:47
  • 1
    Want you want is not possible. – DavidPostill Nov 30 '22 at 19:57
  • @Tetsujin the filename is always the same: "Dockerfile", that's the only different thing between the file and every other file. But yeah I guess is not possible without extensions or something else – Cris Nov 30 '22 at 21:04

0 Answers0