PyCharm doesn't seem to support YAML Syntax highlighting by default. Is there a plugin? I didn't see anything obvious when I Googled for one.
How to open a YAML file. You can open a YAML file in any text editor, such as Microsoft Notepad (Windows) or Apple TextEdit (Mac). However, if you intend to edit a YAML file, you should open it using a source code editor, such as NotePad++ (Windows) or GitHub Atom (cross-platform).
YAML syntaxYAML has features that come from Perl, C, XML, HTML, and other programming languages. YAML is also a superset of JSON, so JSON files are valid in YAML. YAML uses Python-style indentation to indicate nesting. Tab characters are not allowed, so whitespaces are used instead.
This works for me in the community edition: File -> Settings -> File Types -> Add a type for yaml
I didn't do anything else except set '#' as the line-comment character.
This colors basic names, values, strings and comments nicely.
If you can't find the option, search for "File Types" in the search box in the Preferences window.
If you don't see this, you're probably using the community edition where I didn't find a way to get Yaml highlighting working.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With