peerapats / atom-language-gherkin

Gherkin language support for Atom
26 stars 18 forks source link

Comment shortcut failing #12

Open fionnbharra opened 8 years ago

fionnbharra commented 8 years ago

When I use cmd+/ to comment out a line nothing happens.

Steps to recreate:

Result: nothing happens Expected: line becomes #Scenario: Lorem ipsum

I'm using Osx

peerapats commented 8 years ago

This feature still working on v1.0.3, I have tested on my machine.

Could you please make sure

  1. You have reload Atom after install package (cmd+shift+P and type Window: Reload).
  2. The language syntax is set to Gherkin at the bottom right of status bar.
  3. File type is saved as .feature (make sure you don't typo like .featrue)

I'm using OSX also.

ezekg commented 8 years ago

I was able to fix this by updating my settings.cson file in ~/.atom/packages/language-gherkin/settings/ to the following, then reloading Atom (cmd+shift+P and type Window: Reload):

'.text.gherkin':
  'editor':
    'commentStart': '# '

For some reason .source.feature doesn't exist for me, causing the above issues where the comment shortcut fails to work. I'm using the latest version of Atom with all packages up to date.