SZJX

SZJX

Quickly trigger comments for .html.eex files in VSCode?

The ElixirLS plugin for VSCode has been pretty good, however it just doesn’t seem to provide much support for .html.eex files. I get no autocompletion or automatic formatting.

The most annoying for me, however, is the inability to quickly comment out lines. For embedded Elixir it’s easier as all you need to do is to type a #. However for lines of actual HTML, manually typing out the commenting syntax gets much more annoying.

Is there anybody who got their VSCode to easily comment .html.eex files? Maybe I just didn’t set something up correctly? I noticed that there’s another plugin vscode-elixir, however since there seem to be functionality overlaps/conflicts, I only installed ElixirLS.

Marked As Solved

dimitarvp

dimitarvp

Yes, I have both vscode-elixir and ElixirLS.

Also Liked

praveenperera

praveenperera

Have you enabled emmet in eex files?

"emmet.includeLanguages": {"HTML (Eex)": "html"}

SZJX

SZJX

@dimitarvp Installing vscode-elixir indeed enabled the syntax highlighting for .html.eex files. It seems that there are functionality overlaps with both plugins but if things work fine I’ll just go with such a configuration for now.

@OvermindDL1 Yeah I think Emacs and IntelliJ also support both types of commenting. But I currently prefer to use VSCode for my coding in general due to its good support for other languages. I think it’s more of a case of the authors not having time to add such support. I opened issues in the repos but there was no reply.

Last Post!

SZJX

SZJX

@dimitarvp Installing vscode-elixir indeed enabled the syntax highlighting for .html.eex files. It seems that there are functionality overlaps with both plugins but if things work fine I’ll just go with such a configuration for now.

@OvermindDL1 Yeah I think Emacs and IntelliJ also support both types of commenting. But I currently prefer to use VSCode for my coding in general due to its good support for other languages. I think it’s more of a case of the authors not having time to add such support. I opened issues in the repos but there was no reply.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New

Other popular topics Top

openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44532 311
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42533 114
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement