1 comment
Comment actions Permalink

Hello Zjlmeet, thank you for your question. Yes, it's possible. Please follow these steps:

- configure code style for `var` here: "File | Settings | Editor | Code Style | C# | Syntax Style";

- create a new Code Cleanup profile here: "File | Settings | Editor | Code Cleanup";

- enable only "Apply `var` style" for this profile in "Apply sytnax style";

- make this profile the default using "Set as default for silent cleanup";

- if you need to apply code cleanup on save, then please enable "Reformat and Cleanup Code" in "File | Settings | Tools | Actions on Save"

Please let me know if you have any questions. Thank you!

0

Please sign in to leave a comment.