how to set typescript code style for webstorm

Sorry about my poor english. left part of the picture is vsCode  code style ,right is  webstorm code style .I just want to get the same format result with webstrom .

how can i do it?

by the way ,my webstorm code style file:

 

<code_scheme name="Angular 2">
<TypeScriptCodeStyleSettings>
<option name="USE_DOUBLE_QUOTES" value="false" />
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
<option name="SPACES_WITHIN_IMPORTS" value="true" />
</TypeScriptCodeStyleSettings>
<codeStyleSettings language="TypeScript">
<option name="SPACE_WITHIN_BRACKETS" value="true" />
<indentOptions>
<option name="INDENT_SIZE" value="2" />
<option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
</code_scheme>

0
3 comments
 

Looks as if you have Method declaration parameters set to  Wrap always + Align when multiline:


Try disabling Align when multiline - does it help?

1
Avatar
Permanently deleted user

year,It helps.I still get a few tiny differences , Can you help me out? many thanks

 

0

does it help if you set Method call arguments to do not wrap?

0

Please sign in to leave a comment.