Search code examples
webstormjshintjscs

Link JSCS to autoformat in Webstorm


I'm using JSCS (google) for javascript and also JSHint, However if I autoformat my code with cmd+L it creates a space between function and an opening (. Is there anyway to tell the auto format function to obey to the coding guydes from JSCS?


Solution

  • You can't just tell it to obey this or that standard code style. But you can configure formatting options in Settings/Code Style/javascript. Try Spaces/Before Parentheses options: 'in function declaration', 'in function expression', 'function call parentheses'