This sounds like a duplicate post but I tried to find answers to this question online and can't seem to find any helpful information...
I opened several downloaded class files that form one project, and can't seem to run the code. There is no toolbar with the run and debug button and the shortcut (^R) is not working. Right-clicking on the files neither gives the option to execute the code.
Looking at your screenshots (especially #2, the one that show the File menu) it seems to me that you are in the Light Edit mode where the whole IDE pretty much is just an editor.
Switch to the full IDE mode (where you open the actual project) and you will have the full functionality.
https://www.jetbrains.com/help/idea/lightedit-mode.html
Related
CLion 2016.2 helpfully detects potential errors in the file you're editing, which can be seen in the validation bar to the right of the code.
That's just a single file though, is there a way (like a tool window) to get a list of all such warnings in the whole project, or specific parts of it?
Bonus points if it also lists warnings and errors from the compiler, though that's less important, because the compiler output already includes any it found.
Yes, it is possible. The feature you are looking for is called the Inspector.
Do: Find Action... | Inspect Code. It will show a pop-up that will allow you to select the scope: file, whole project, custom, and the Inspection profile (you can choose the type of errors you want to see):
After clicking OK, this is an example of the output, that you can navigate with the mouse or with keyboard shortcuts:
In version 2017.2, I have it under Code | Inspect Code....
You can also right click a folder in Project view and select Inspect Code... there to be able to check only that folder.
I have 2 simple questions that I cannot find answer to.
First is in NetBeans when I type . operator behind a variable or method or whatever, small window with documentation will show up like on the picture. On the other hand I can't achieve the same result in IntelliJ. I followed steps on official website and this is what I get in IntelliJ after I press CTRL+Q. All I want is full documentation so for a begginer like me it would be easier to use and learn stuff.
[EDIT]: I tried it once again and I saw little yellow message "download missing driver" and it is working just fine.. this one is solved.
Second question is about MySQL database driver (or connector). In NetBeans, I just press right click on project and add the library I want. But I can't find solution for this in IntelliJ.
Thanks for every advice!
For the first question, I'm thinking what you mean is the suggestions after you type a '.'. In IntelliJ, the suggestions show only if you have config a right dependency in the File > Project Structure, and the Libraries tab.
And for the second question, also you should find File > Project Structure, in the Modules tab, Add new Database support(Hibernate such as) for you project.
Hope it helps you.
Ok, so I finally found the solution.
I went to Project Structure -> SDKs -> Documentation Paths and I added https://docs.oracle.com/javase/8/docs/api/ in there so now when I press CTRL+Q for quick documentation it shows exactly what I needed.
While editing a JavaScript file, the IDE shows highlights on the lines that have problems and displays the lightbulb when you're on one of those lines.
How can I see a live list of all problems found in the current file (e.g. syntax errors)?
The only way I found so far was to manually run inspection and check the inspection window. That's quite cumbersome. Even the "Problems" section of the Project window updates itself automatically as soon as I change the code (even without saving) - but it doesn't display the actual errors (only which files have errors).
Apparently the IDE knows what errors exist in the file - I just can't find a way to see all of them in a list.
In every other IDE I know, it is a built-in, enabled-by-default, feature: eclipse, visual studio, brackets, etc.
Apparently this is an open issue on the IntelliJ family of products. Please upvote that issue if you feel it is missing as well!
I'm sure there is a simple option for this but I have as yet been unable to find it. Every time I close and reopen Aptana Studio 3 it collapses all the folders in the project explorer and I have to reopen them all, is there a way to get it to leave them open and save the project explorer's state when I close the program?
Thanks.
I cannot find any way to keep the state of the Project Explorer. However, using the App Explorer, the state of your open folder will be preserved. You can also try the "Navigator" which looks just like the Project Explorer, but appears to keep state. I will add the proviso to that: It kept state when I restarted aptana, but it also developed a GUI glitch where it appears to be scrolled to the right so I only see the right half of all of my file names and I cannot fix it, so this may not be a good option if you get the same glitch.
There is also a method which does not do quite what you ask, but may be a good fix for you anyway. If you click "Link with Editor" picture (two yellow arrows) in the Project Editor, it will automatically expand your project hierarchy to match whichever open file you have active. Since your files stay open when you close Aptana, this would keep the Project Explorer expanded to whatever you are looking at even on restart. See this question
You can also set up working sets for various parts of your code that are buried in the hierarchy and use the Project Explorer to show those working sets instead of you projects. This does not save state, but it does give you easy access to common parts of your code that may be deeply buried.
Hope one of these helps you.
Why would a .sln solution file open and appear empty in Microsoft Visual Basic 2010 Express - i.e. no windows showing projects and code files etc.
When I inspect the file in a text editor, it contains references to vbproj files (which are present) which indicate that it should not appear as empty.
No error messages are reported when the file is opened.
Update:
(To illustrate my problem)
It attempts to load the projects that belong to the solution:
And then results in a bare solution screen
Express Edition is limited to on project per solution. If you have more than that, you will not be able to use the solution file with the express edition of visual studio. You will need to open the projects separately.
The answer is that the projects did load for the solution but the Window to display them was not open or visible. To make it visible, go to the View menu and select Other Windows:
This displays the 4 projects referenced by the solution
Forgive me for blurring the project names but this might be commercially sensitive and therefore not for public awareness. But you get the picture.
In summary it was my lack of knowledge about the tool, though I had looked under the Window option first thinking along these lines, but the View menu is actually where one would go to display things about the project.
Thanks to everyone for your contributions.