By default the IntelliJ IDEA interface contains the following tabs/panels:
Project (tabbed to the left)
Structure (tabbed to the left)
Commander (tabbed to the right)
Ant Build (tabbed to the right)
IDEtalk (tabbed to the right)
Maven Projects (tabbed to the right)
Data Sources (tabbed to the right)
TODO (tabbed at the bottom)
Web Preview (tabbed at the bottom)
Due to some fiddling around with the settings in one of my projects I've managed to remove all tabs/panels but the following:
IDEtalk (tabbed to the right)
Maven Projects (tabbed to the right)
Data Sources (tabbed to the right)
Web Preview (tabbed at the bottom)
I'm running IntelliJ IDEA 8.1.
Question:
How do I the Project tab and the rest of the lost tabs?
The (infuriating) answer is that you just need to click the icon at the very bottom left of your screen. Then the project and other tabs will magically reappear. UX #fail
Procedure to recover all tabs:
Backup the "damaged" project
Create a new project using the same project name as the damaged project
Restore the backup of the damaged project, but copy over the .iml and .ipr files which were created when creating the fresh project in the previous step
Open the recovered project and then used File > Synchronize to pick up all files in the project
The project and all tabs are now restored. Done!
The above procedure has been tested and is known to work.
Related
Facing some issue with the build, I deleted the project and .idea directories of my SBT project (containing submodules) followed by Invalidate Caches / Restart... (invalidated the cache too)
Ever since relaunch of IntelliJ, I can't locate the sbt shell
Interestingly, I'm still getting the sbt shell when I open my other projects (in which I didn't delete the project and .idea directories) in IntelliJ
I can confirm that I have the latest release of IntelliJ IDEA for MacOS with the Scala plugin installed
what fixed my problem was:
install scala plugin
restart
file -> close project
instead of open, click new project, select scala with sbt option,
then next
select the same project as location.
hope it will save you time and energy
In Intellij 2018, under Preferences - Build, Execution, Deployment - Build Tools - sbt, check "Use sbt shell for build and import (requires sbt 0.13.5+)". Then restart Intellij. The sbt shell tool window tab will appear in the bottom pane (if not, select it from View - Tool Windows - sbt shell).
In my case, scala plugin needed to be updated and accordingly this caused sbt to disappear from build tools. Go to Settings --> Plugins --> Updates and make sure that scala plugin is updated. If it wasn't and you updated it, you should restart the IDE afterwards.
After that removing the .idea folder and reimporting the project was necessary for the project to build.
You can select
Window → Restore Default layout
Or press Shift + F12
This will restore your default window layout and the tab will be visible again (You can check this works by hiding the sbt tab by right clicking and selecting 'Remove From Sidebar').
Some windows such as Maven or Ant need to be brought back by
View → ToolWindows → [Window Name]
In my case I enabled the sbt shell going to "File - Settings - Build, Execution, Deployment - Build Tools - sbt " and after enabling here, you need to restart your intellij and then you can find sbt-shell here "view- Tool window - sbt shell"
In IntelliJ IDEA project tool window, there are several menu items like Project, Packages, Project Files, Problems, Production, Tests, Android instrumentation tests, Scratches.
But I can't find Changed menu recently from which I can check modified local files.
I use svn 1.9.3 in local, is there any one who knows turn on changes menu in Project tool window?
Looks like a known bug. Try 2017.1 version.
I have an intellij project that has gradle files in it(build.gradle, settings.gradle, etc.) and I have the project working in intellij. The issue is that intellij can't find any 3rd party libraries so I need to link the gradle project to it. How can I do this to an existing intellij project or at least be able to resolve 3rd party libraries so that the classes don't show up as red in the editor?
I'm on version 2016.1.2 145.972
You can click on the "+" symbol on the Gradle tool window and attach the project. If you don't see the window, use View | Tool Windows | Gradle to bring it up. (Or use the square icon on bottom left). You may then have to click the refresh icon to bring in the dependancies (in case IntelliJ didn't do it).
Refer: https://www.jetbrains.com/help/idea/2016.1/working-with-gradle-projects.html
Alternately, you could just re-import the project freshly using gradle.
Import Existing Project -> Import project from External model -> Gradle
Intelij idea in project view under external libraries shows sbt dependencies which doesn't exist anymore for the specific project. I had a dependency in project, then I removed it, refreshed the project dependencies and still see it in project view.
It can't be transitive dependency from another lib, because I checked with sbt-dependency-graph plugin that dependecy was not present in output after removing it.
I also can browse classes from that removed dependency.
How to tell Intelij Idea not to show removed dependecies in project view?
This is a problem I am also phasing with IntelliJ. How I deal with it: I manually go to project properties, select the library and manually remove it.
Click on the project structure menu.
Go to libraries.
Find the one it shouldn't be there. Right click, select delete.
Give IntelliJ some time to refresh (it can get slow for few minutes).
Eclipse has a good feature that I can link to other project in the same workspace as a dependency specified in pom.xml. Is it possible for me to do the same in intellij ?
Of-course you can do, I am doing a sbt project having dependencies of multiple projects. It will be easy to debug if you attach the dependent projects. It can be achieved easily by holding the ctrl and mouse clicking on any of the methods from the other projects in your current project. It will open the compiled code of the same. Then to the right top corner you can find Choose Sources... . Click that and in the explorer go to your dependency project and select the source. There you can see other project in the same workspace.