how do you comment with line block?

Answered

Right now that feature is grayed out and I cannot figure out how to ungray it.

0
14 comments

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.

1

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.

0

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"

0

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).

0

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.

 

 

0

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.

0

Thanks, but when I try to create a java file or a java class, that option is not even available from file new

0

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.

0

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.

0

Also I do not know how to define the source root.

0

Create a new Java project from template as shown on the video. It will create the source root and the Main java file automatically.

0

I clicked here but that did not do anything

0

 

 

I got it, there was a 'next' button that I was not hitting.

 

0

Please sign in to leave a comment.