Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Set default syntax highlighting for filetypes #1784

Closed

Description

@jglovier

Apologies is this is a dupe - I searched a number of different ways and couldn't fine anything existing. Obviously, I'd be surprised if this hasn't come up somewhere before.

Default syntax highlighting, and setting syntax highlighting for files without a default works great in Atom - except for one significant thing: if Atom doesn't have a syntax highlighting match for your filetype, then you have to set it manually ever time you open a file of that type.

That gets quite cumbersome when, for example, you're working with a repo filled entirely with .liquid files.

Other editors, like Sublime, handle this by offering an option to Open all with current extension as... which lets you set a default syntax for all files with that extension.

image

Since we're not offering a place to set filetype in the menubar (and certainly not suggesting we should; setting from command palette is ✨), one simple way to expose this could be to add an option to the command palette list for syntax options for set all as this type.

Activity

  1. kevinsawicki commented on Mar 24, 2014

    @kevinsawicki
    Contributor

    I think this is a duplicate of #1718

  2. lock commented on Jan 25, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  3. locked as resolved and limited conversation to collaborators on Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions