Webstorm 10 with ASP files auto indent not working

Step 1: Here is the doc before the code

Screen Shot 2015-05-15 at 9.49.24 AM.PNG
step 2: type tr and tab and i get <tr>|</tr>
Screen Shot 2015-05-15 at 9.49.38 AM.PNG

step 3: i Hit return to write code inside and the auto indent never works.  this is repeatable with the code inside the TR so EVERYTHING indents 0 lines.   How can i setup ASP so that it thinks its HTML or it at least understands how to properly indent?

I've tried code injection HTML and that does nothing (hence the green highlighting showing code injection).

Screen Shot 2015-05-15 at 9.49.48 AM.PNG


Formatting/indentation don't work for ASP.NET pages - see https://youtrack.jetbrains.com/issue/WEB-8113 and linked tickets


bummer.  When I look at the backlog some ASP bugs seem like they aren't getting fixed at all.  I don't know if its possible but maybe a easier fix is to just "restart" auto indent based on the tag you are on for that block?





and just let the HTML codes start and stop indentation based on that block only.?   that way if i have a HTML block that has a starting DIV i'd expect the ending div to just line up with where the starting DIV is and all code inside that to use that starting DIVs indentaiton block?

Thats why i didnt know if it was some sort of configuration issue I am doing or its literally a bug?

If i could make all ASP pages THINK they were HTML pages i'd be happy but i dont know if that would solve anything or break more things.  This bug is something i've dealt with for 2 or 3 versions but I alsways chalked it up to my fault for not configuring something but now it looks like it may be otherwise?


setting > editor > file types

recognized file type

active server pages (*.asp) -> html move


Thank you mi sun. Moving aspx to the html file type works for writing code, and then swapping back to active server pages for code linting.


Annoying we have to do that, but it's nice that there is a work around. For the record, I had to delete *.aspx from one and add to another, as there doesnt appear to be a move anymore, but no biggie.


Please sign in to leave a comment.