[英]how would I configure a ruby on rails closing tag %> in atom
In atom, while using .erb files my basic desire is to map a closing tag %>
whenever I hit tab after typing <%
or <%=
在原子,同时使用.erb文件我的基本欲望是映射关闭标签
%>
每当我打标签打字后<%
或<%=
I do have emmet installed and it automatically wants to type <<%></%>
, this isnt ideal... 我确实安装了emmet,它自动想要输入
<<%></%>
,这不是理想的选择...
If you have the Rails language package installed and the file extension is .erb then just type "=" (without the quotes) and then tab & it will give you both the opening & closing tags. 如果您已经安装了Rails语言包,并且文件扩展名为.erb,则只需键入“ =“(不带引号),然后按Tab&即可同时给您打开和关闭标签。
Typing "-" and tab will give you the non-display tags. 键入“-”和制表符将显示非显示标签。
For those who might still be having an issue with this and have the ' language-ruby-on-rails ' package already installed, check if you've installed emmet or some other shorthand helper package. 对于那些可能仍然对此有疑问并已经安装了“ language-ruby-on-rails ”软件包的用户,请检查是否已安装emmet或其他一些速记助手软件包。
In the event that you do, consider either disabling emmet(or other shorthand package) entirely or configuring it to not interfere with those snippets generated by language-ruby-on-rails. 如果您这样做了,可以考虑完全禁用emmet(或其他速记软件包),或配置它以不干扰Rails-ruby语言生成的摘要。
Maybe you can try setting a macro with this atom package: 也许您可以尝试使用此atom软件包设置宏:
https://atom.io/packages/atom-macros https://atom.io/packages/atom-macros
I haven't used it myself, might be worth looking into for your needs. 我自己还没有使用过,可能值得考虑一下您的需求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.