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

Enanble "Extension Settings" in the VS Code package #56

Open
bosborne opened this issue Dec 6, 2020 · 3 comments
Open

Enanble "Extension Settings" in the VS Code package #56

bosborne opened this issue Dec 6, 2020 · 3 comments

Comments

@bosborne
Copy link

bosborne commented Dec 6, 2020

My understanding is that BioSyntax can color amino acids in multiple ways, including Fasta Clustal (Default), Fasta Hydrophobicity, Fasta Zappo, and Fasta Taylor. I'd like to be able to select one of these options in VS Code, which I think would be accomplished using Extension Settings.

@MSMortensen
Copy link

I comment here as this is related.

Please add an option in "Extension Settings" to include additional file endings.
Currently, .fasta files are formatted, but not .fna.

@ababaian
Copy link
Member

Does this work for you @MSMortensen
https://stackoverflow.com/questions/29973619/how-to-make-vs-code-treat-a-file-extensions-as-a-certain-language

The easiest way I've found for a global association is simply to Ctrl+k m (or Ctrl+Shift+P and type "change language mode") with a file of the type you're associating open.

It's not hard-coded but should be quick to associate a filetype with a syntax.

@MSMortensen
Copy link

MSMortensen commented Jul 21, 2022

Hi,
That works and might be a way to be a solution to @bosborne as well
In short I added the file association to my settings.json file and that solved it.
Thanks!

"BioSyntax.nonBioTheme": "Dracula",
    "files.associations": {
        "*.rmd": "rmd",
        "*.fna": "fasta"
    }

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

3 participants