Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to open files with unknown extensions, or no extension, in a text editor by default?

I'm mostly interested in doing this on Windows 7, but it would be nice to know how in Mac/Linux too.

share|improve this question
    
See the comment I posted on the first answer for this question superuser.com/questions/257941/… –  rob Dec 18 '12 at 15:48

2 Answers 2

Microsoft has a knowledge base article for just this situation:

KB236014 - "INFO: Shell Extensions for File Names with No File Extension"

Blurb:

For example, to associate a program (for example, Notepad.exe) to open all files with no extension, use the following registry keys:

[HKEY_CLASSES_ROOT\.]
@=""

[HKEY_CLASSES_ROOT\.\shell]

[HKEY_CLASSES_ROOT\.\shell\open]

[HKEY_CLASSES_ROOT\.\shell\open\command]
@="<path to notepad.exe> %1"

share|improve this answer
2  
Sorry it took me a while to get back to you on this... I tried saving it as a .reg and executing it but that didn't seem to help. Is there a special trick to it? Thanks! This sounds perfect –  Jeff Jul 28 '11 at 2:51

Linux doesn't consider file extensions as important as Windows does. Nevertheless it's usually a guide to the type of contents.

When I wish to open a file (I'm using Linux Mint 11) I right-click on the name and choose Open With, then select a text editor (like gedit) from the list of Applications.

I tend to use this approach in Windows (XP) too, but I choose Send to ...

That means I have to put a shortcut to my favourite text editor in the appropriate place. I've no idea how Windows 7 handles this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.