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

It is not working on mac #5

Open
armandoltx opened this issue Jan 16, 2018 · 4 comments
Open

It is not working on mac #5

armandoltx opened this issue Jan 16, 2018 · 4 comments

Comments

@armandoltx
Copy link

I installed it on mac and changed the Keyboard shortcut.
This is what you can see in my keybindings.json:

// Place your key bindings in this file to overwrite the defaults
[
  {
    "key": "cmd+.",
    "command": "erb.toggleTags",
    "when": "editorTextFocus && editorLangId == 'erb'"
  },
  {
    "key": "ctrl+shift+`",
    "command": "-erb.toggleTags",
    "when": "editorTextFocus && editorLangId == 'erb'"
  }
]
```
@nikosdouvlis
Copy link

nikosdouvlis commented Feb 9, 2018

Hello,

You may be missing the languageId for your .erb files. A couple of suggestions you can try to solve your problem:

  • Delete the && editorLangId == 'erb' from your "when" clauses in your keybindings.json file
  • Open the .erb file, hit Ctrl+Shift+P and enter "Change Language Mode" -> "Configure File Association for .erb" -> 'erb'
  • Simply add the following line in your settings
    "files.associations": { "*.erb": "erb" }

@posthardcode
Copy link

Not OP, but I can confirm that deleting && editorLangId == 'erb' worked.

@kirillplatonov
Copy link

kirillplatonov commented Sep 6, 2019

Switching editorLangId == 'erb' to editorLangId =~ /erb/ helps.

@kirillplatonov
Copy link

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

4 participants