shalupov / idea-cloudformation

AWS CloudFormation plugin for IntelliJ-based IDEs (IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio, DataGrip, CLion)
https://teamcity.jetbrains.com/viewType.html?buildTypeId=IdeaAwsCloudFormation_Master_Build&guest=1
Apache License 2.0
136 stars 27 forks source link

Cannot format file #135

Closed montao closed 5 years ago

montao commented 6 years ago

If I want to "reformat code" using CF syntax, is that possible? If yes, how? I tried installing the plugin in IDEA 2018 community edition and it could analyze the file for errors but I could not "reformat code" after making some change. If the feature is available, where can I find it?

shalupov commented 5 years ago

There is build-in formatter for JSON and YAML files. It should be available for CF files. I've tested it and Code -> Reformat Code works for me