Intellij-elixir: Comment line/block doesn't work for EEX files

Created on 3 Dec 2017  路  5Comments  路  Source: KronicDeth/intellij-elixir

subj

  1. Select block/line
  2. press ctrl + /
  3. no profit :(
Bug Enhancement EEx

Most helpful comment

@manuelgeek
use <!-- multi line here -->

All 5 comments

Cmd + / works fine for me once inside an EEx tag, but it uses # because that's the Elixir comment. So, that needs to be fixed

elixir comment when in eex tag

Selecting consecutive EEx tags works, but this also shows that uncommenting with Cmd + / doesn't work because the Elixir comment is put outside the EEx tag.

multiple eex tag selection comment

This could be a side-effect of having to treat the whitespace between EEx tags as belonging to EEx in order to handle spacing between the do and stab operations as normally that would count as template data:

<% cond do %>
  <% false -> %>
      ...
<% end %>

Finally, inter-language commenting does not work when the selection spans both HTML tags and EEx tags.

cross-language comment

Only the ending language, Elixir comment is used. I'm not even sure OpenAPI handles this. It may be something I need to do custom.

Now even if I want to comment on pure HTML lines, IntelliJ uses #, which is wrong... Would there be a way to fix it or maybe temporarily use the HTML commenting syntax instead? It's much harder to type than the single # required for commenting out Elixir, actually.

any solution on this?

@manuelgeek
use <!-- multi line here -->

@dunker1304 thank you, I hadn't tried this, it works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KronicDeth picture KronicDeth  路  7Comments

SyedWasiHaider picture SyedWasiHaider  路  4Comments

develop7 picture develop7  路  8Comments

Nicholi picture Nicholi  路  6Comments

nhooyr picture nhooyr  路  3Comments