EJS coding style

Hi, 

I've html files which are using the tab character for indentation. When I rename the file .ejs, and I auto reformat it, all tabs are replaced with spaces. I've checked the EJS section of code style in webstrom and there seems to be nothing about tabs.

  1. Is there any way to make EJS use tabs instead of spaces, or somehow inherit the configuration from html files ?
  2. In general, is there a way to make web storm err on the side of tabs instead of spaces ? I seem to always have to fight it. 

Thanks,

1
3 comments

EJS inherits Settings | Editor | Code Style | Other File Types preferences; try enabling Use Tab character there

0

I agree — it seems there are some bugs with EJS or IDEA; I’m not sure where exactly. Even though I found the way to set the correct indentation in Settings | Editor | Code Style | EJS Preview, the Apply button is highlighted, but when I click it, nothing happens.

0

Unfortunately, it’s not quite clear what the problem is. Can you please describe it in more detail? What would you expect to happen on pressing the Apply button? What is a result of Code > Reformat Code action after closing the Settings dialog with OK?

0

Please sign in to leave a comment.