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

Set default interpreter per Language #610

Open
clayrosenthal opened this issue Jun 8, 2024 · 1 comment
Open

Set default interpreter per Language #610

clayrosenthal opened this issue Jun 8, 2024 · 1 comment
Assignees

Comments

@clayrosenthal
Copy link

I would like to be able to set a default shebang/interpreter per language. I saw issue #355 mentions adding docs for adding new languages, but given it was still open I'm not sure how I could add an interpreter for a given language. In the meantime I think a quicker workaround would be the ability to set a default shebang for a given language so I can use an interpreter I've made for an unsupported language.

@sourishkrout
Copy link
Member

sourishkrout commented Jun 10, 2024

Hi @clayrosenthal, thanks for getting in touch!

Have you tried the interpreter annotation either using the Configure foldout (screenshot below) or specifying it directly inside the fenced code block's attributes (both having the same effect)? Docs available here: https://docs.runme.dev/configuration/shebang#configuring-shebang-custom-interpreter-in-vs-code

Will that solve for your use case?

image

The #355 issue is for extending shebang auto-detection based on the languageId, as in markdown's triple backticks with e.g. sh or javascript)

@sourishkrout sourishkrout self-assigned this Jun 10, 2024
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

2 participants