Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File type auto-detection for extension-less filenames #12971

Open
core-ai-bot opened this issue Aug 31, 2021 · 2 comments
Open

File type auto-detection for extension-less filenames #12971

core-ai-bot opened this issue Aug 31, 2021 · 2 comments

Comments

@core-ai-bot
Copy link
Member

Issue by lrebrown
Wednesday Dec 03, 2014 at 14:02 GMT
Originally opened as adobe/brackets#10071


Working with files that have no file extension to their filenames, such as unix shell scripts, is a huge PITA. To get syntax highlighting you either are forced to rename the files to add an extension (not always possible/acceptable), or else you must individually change the type selected from the default (text) to bash (in this case), for each and every file you're working with, and do it all over again the next time you open Brackets.

When dealing with a file with no file extension, or otherwise an unrecognised one (to cover extension-less filenames that do actually contain a dot), could brackets not look at the file's magic number (or the text of the file's first line of content) to see if it can determine the type and thus save me the time and frustration of manually doing so. It would be much appreciated. :)

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Wednesday Dec 10, 2014 at 19:46 GMT


Not exactly related to your feature, but it may help you anyway: See https://github.com/adobe/brackets/wiki/Language-Support#preferences for how to map a file name to a language, using preferences.

@core-ai-bot
Copy link
Member Author

Comment by gklo
Thursday Dec 11, 2014 at 00:00 GMT


I am working on bash detection too. Take a look: adobe/brackets#10141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant