Skip to content

indent html elements, nested EJS tags inside EJS tags #91

@jackytank

Description

@jackytank

Steps to reproduce:

It would be nice if HTML elements, nested elements and EJS tags inside EJS tags got indent on format

Current:

<% if (true) { %>
<% array.forEach(element => { %>
<% for( let index = 0; index < array.length; index++ ) { %>
<% } else if ({:condition}) { %>
<% if (condition) { %>

<% } %>
<% } %>
<% }) %>
<% } %>

Expected result:

<% if (true) { %>
	<% array.forEach(element => { %>
		<% for( let index = 0; index < array.length; index++ ) { %>
		<% } else if ({:condition}) { %>
			<% if (condition) { %>

			<% } %>
		<% } %>
	<% }) %>
<% } %>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions