Welcome to the Treehouse Community
Looking to learn something new?
Reformatting my code in IntelliJ isn't working.
So as far as I can see I've try everything. Obviously I haven't otherwise I wouldn't be here though :D.
So I press Crtl + Alt + L and I get a yellow box in my editor that says: "No lines changed: content is already properly formatted Show reformat dialog: Ctrl+Alt+Shift+L".
Show reform dialog is a link, that shows me I am reformatting Messy.java. I've also clicked on just about every other folder in the project and tried reformatting it there.
Crtl + ALt + Shift + L doesn't actually seem to do anything and when I right click on Messy.java in the src folder on the left hand side the reformat code option is greyed out. Maybe I have something set up wrong?
Another question if anyone knows. The hot key for commenting lines doesn't work, I am running elementary OS, a distro based on Ubuntu. It shouldn't make a big difference what keymap I'm using because the commenting key is Crtl + / for every one as far as I can tell.
Thanks in advance!
Solved thanks to my trusty rubber ducky. I guess Messy.java got mapped to being a text file. So even after I deleted the project, remade it, and tried to make it a java class file intelliJ still recognized anything and everything called Messy.java as a text file.