how do you comment with line block?
Answered
Right now that feature is grayed out and I cannot figure out how to ungray it.
Please sign in to leave a comment.
It's not the place where you should be looking at. Please follow the video exactly and create a new Java hello world project from template.
See also https://www.jetbrains.com/help/idea/2017.1/creating-running-and-packaging-your-first-java-application.html and https://www.jetbrains.com/help/idea/2017.1/content-root.html.
What file type do you edit? Is it read-write or read-only? It's not clear from your screenshot.
Also editor actions are available only when focus is inside the editor.
I'm pretty sure it's read-write but not 100% posiitive. I do not know what you mean when you say "editor actions are available only when focus is inside the editor"
The caret (cursor) has to be inside the editor.
If it doesn't work for you, please provide a sample project and the exact steps to reproduce (the name of file you are trying to use this feature in).
Thank you for helping me out:
the file is available here:
https://ufile.io/tc8n3
The cursor is certainly within the editor.
Here are the settings I'm using
https://ufile.io/80g33
Also, I quit the app to try to figure out what steps I took and the project automatically comes up so I can't remember what steps I took. But I did get this error message.
Why do you edit the .iml file? This file stores IntelliJ IDEA module information and is not intended to be edited by hand.
Please create a new Java file and write your code there. IML file is just an XML with the module configuration, editing and parsing features are disabled for such files for performance reasons.
https://www.jetbrains.com/help/idea/2017.1/creating-java-classes,-interfaces,-enumerations-and-annotations.html
Since your .iml file is corrupted now, either revert the changes using the local history (https://www.jetbrains.com/help/idea/2017.1/using-local-history.html) or create a new project.
Thanks, but when I try to create a java file or a java class, that option is not even available from file new
You need a Java module with the Source root defined. Java files and packages can be created only inside the Source root directories.
Please check this video: https://www.youtube.com/watch?v=c0efB_CKOYo.
That was the exact video I was watching before I posted here. She already has some configuration set up so that she can build a java file. I can't figure out how to build a java file.
Also I do not know how to define the source root.
Create a new Java project from template as shown on the video. It will create the source root and the Main java file automatically.
I clicked here but that did not do anything
I got it, there was a 'next' button that I was not hitting.