Por que meu Windows abre um arquivo CSS com o bloco de notas?
Clique com o botão direito no arquivo CSS e clique em "Abrir com" > "Escolha o programa padrão ..."
Você verá que o programa padrão está definido como "Bloco de notas":
Vocêpodeusarestediálogoparaalteraroaplicativopadrão,sedesejar.
Noregistro,achaveHKEY_LOCAL_MACHINE\SOFTWARE\Classes\.csstemvalorPerceivedTypedefinidocomotext:

Aviso:
- Nãomodifiqueestaentrada.ÉmencionadoapenasparaexplicarporqueoNotepadéoprogramapadrão.
ONotepadéoaplicativopadrãoparaabrirarquivosdetexto.
Vocêpodeabriroarquivocssemumcmdshelldigitandoseunomeeeletambémseráabertonoblocodenotas:

PorqueoNotepadéoaplicativopadrãoparaabrirarquivosdetexto?
IfIhaveVIM,howdoImakeVIMthedefaultapplicationforextensionswhosePerceivedTypeistext?
Oblocodenotasestáregistradocomoocomandoaserexecutadoparaarquivosdetextodetipopercebido.
Paraalterarocomandoparavimediteosvaloresdoregistrodescritosabaixoesubstitua%SystemRoot%\system32\NOTEPAD.EXEpelocaminhoparavim.exe.
RegisteringaPerceivedType
Registryvaluesforperceivedtypesaredefinedassubkeysofthe
HKEY_CLASSES_ROOT\SystemFileAssociationsregistrysubkey.Forexample,theperceivedtypetextisregisteredasfollows:
HKEY_CLASSES_ROOTSystemFileAssociationstextshelleditcommand(Default)="%SystemRoot%\system32\NOTEPAD.EXE" "%1" open command (Default) = "%SystemRoot%\system32\NOTEPAD.EXE" "%1"A file type's perceived type is indicated by including a
PerceivedTypevalue in the file type's subkey. ThePerceivedTypevalue is set to the name of the perceived type registered underHKEY_CLASSES_ROOT\SystemFileAssociationsregistry subkey, as shown in the previous registry example.To declare .cpp files as being of perceived type "text", for example, add the following registry entry:
HKEY_CLASSES_ROOT .cpp PerceivedType = text
Origem Registro do aplicativo
