Change Indentation and Default format

Hello everyone, I am starting with HTML/CSS/JS with Webstorm. I was looking for any way to change the default file that the IDE writes when you create a new file (HTML for example), changeing it or totally deactivating. By the same way, I noted that when I touch Enter the program doesn't make any indentation automatically when I am inside a tag, is there any way of turning on some function to do it? 

Thank you everyone for your time.

0
5 comments

> I was looking for any way to change the default file that the IDE writes when you create a new file (HTML for example)

 

you can change it in Settings | Editor | File and Code Templates, HTML File

 

>I noted that when I touch Enter the program doesn't make any indentation automatically when I am inside a tag

 

this should work; can you provide the exact code snippet the issue can be reproduced with? Screencast that shows your steps would be appreciated

0

for the second thing, I just created a file and tried to add a simple paragraph, but the file was completeley new, is there any section in the IDE settings that can be deactived? it didn't work from the first moment

0

haven't got what you mean, sorry... The file was completely new? What would you like to deactivate?

0

I would like to activate, not deactive auto-indentation (if it is possible) because when I hit enter in the keyboard it doesnt indent automatically.

for example:
I want this:

<html>

    <head>

but I rather have this when I hit enter:

<html>

<head>

0

Try removing html from Do not indent children of: list in Settings | Editor | Code Style | HTML | Other

0

Please sign in to leave a comment.