How to show arbitrary project in IntelliJ? - intellij-idea

I have very custom project (including Matlab and other languages, including java maven projects soemewhere deep below) under Git control and would like to use IntelliJ as editor and version control UI. I have created "empty" project and fed root directory to wizard.
Now I see only top-level files in Project pane with no subdirectories shown.
Is it possible to show everything?

You will need to add a module for the files to be visible:
Select File > Project Structure > Modules
Use the + symbol and select Import Module
Navigate to the root you wish to view and then OK
Select Create module from existing sources then Next
Next you will see a screen telling you source files have been found and their associated paths, simply select Next
Lastly you will see a screen listing any frameworks which were found, select Finish
You will now have your project with subdirectories visible.
EDIT
If you wish to add files which are read only and not intended to be built alongside your source code then:
Go to Project Structure
Go to the Modules menu item and select your new module
Find the Mark as menu and deselect all items
More info here
Intellij will now ignore these files when compiling etc
You could also investigate adding different content roots

Related

Can I use the module structure (collapse Java package paths) for the Project Pane -> Changed Files view in IntelliJ?

When I use the "Project Pane -> Project" view in IntelliJ, my Java package paths are collapsed based on the Modules in my Project Structure (e.g. com.company.project). I would like to use IntelliJ for code reviews, so I've checked out the changes locally and am looking at the "Project Pane -> Changed Files" view, but this doesn't pick up the project structure, so each folder takes an extra line. Can I get the best of both worlds here?
I figured this out with the help of this answer about expanding the folders (which I also wanted to do) How to expand folded package chain in Intellij IDEA?
Right click on "1:Project" to see the options for the project pane and then check "Flatten Packages".

Xcode 10 Build Location -> Per-configuration Build Products Path

I'm just trying to implement react-native code push on my react-native application but I just can't find Build Location -> Per-configuration Build Products Path on Xcode 10.
Here's the guide I'm following: https://learn.microsoft.com/en-us/appcenter/distribution/codepush/react-native#multi-deployment-testing
Where did that change go to?
Xcode 11 has removed this setting moving to the new build settings found in the Workspace Settings.
For CodePush, you want to create another user-defined section named CONFIGURATION_BUILD_DIR, using the same per-configuration settings.
NOTE: I found that Xcode would crash anytime I set the section name to CONFIGURATION_BUILD_DIR after creating it (most likely due to the empty values). To avoid this issue, create the section without renaming, set the configuration specific build folders, and then change the name.
Best of luck!
Press Cmd+1 to open Project Navigator
Click on Project you need to edit
In the pane that opens click on target
Click on Build Settings tab
Select "All" in the filters
Select "Levels" in the filters
Search for "Build Location" in search.
Xcode 11, you can find this option at PODS_CONFIGURATION_BUILD_DIR

JavaFX exe wont run

I have recently finished building a mini-app using IntelliJ IDEA in javaFx. It is my first time using this ide and language, so I am having difficulties manufacturing an exe file. I watched all sorts of youtube videos and different methods.
It does generate an exe file but when I click it, nothing happens.
Any idea?
I do know that with IntelliJ Ultimate edition you can build down with an EXE file.
There are a couple things you need to double check.
First, is that in your project structure under artifacts, you have the "Type:" set to JavaFx Application(which is on the top right of the window).
Secondly, switch to the Java FX tab and make sure Application class is set to your main class.
Thirdly, Select "all" under Native bundle: which is located towards the bottom of the window.
Lastly, Select the Output Layout tab and move all your available elements to output root then click on the module of your application and look at the settings that appear at the bottom. "Make sure that main class setting is in fact the main class to your application.
Side note: make sure you delete your artifacts build folder just to start from a clean slate. Also make sure your Environment variables are set to the system path correctly.

Equivalent of having 2 projects open in my WebStorm workspace?

I open a project, but want to create a module to reference in WebStorm, (mostly so I can do work in 2 projects instead of having 2+ instance of WebStorm open).
In IntelliJ Ultimate or whatnot, it has a modules button. It Kinda looks like modules does not exist for me, or at least I have not see anything.
I have 2 folders which are siblings to each other representing the 2 separate projects I wanted to open in 1 instance of WebStorm.
Where can I find this information for WebStorm?
A lot of the googling was talking about modules but I didn't see that option, and I believe I noticed some posts mentioning this is not a thing in WebStorm.
Thoughts? Guidance?
WebStorm/PhpStorm project consists of a single module only (WEB_MODULE type).
WebStorm cannot open more than one project in single frame. https://youtrack.jetbrains.com/issue/WEB-7968 -- watch this ticket (star/vote/comment) to get notified on any progress.
At the same time it's possible in PhpStorm: https://www.jetbrains.com/help/phpstorm/opening-multiple-projects.html#d197136e31
But it's still will not be full "two separate projects with separate settings" AFAIK. It's more of a "attaching 2nd project so you can see and edit those files in the same frame".
Question is: why exactly you need this? To access files of a second project? If so -- just add such folder(s) as Additional Content Root -- it will be listed as another node in the Project View panel and files will be treated as part of the project itself.
https://www.jetbrains.com/help/phpstorm/configuring-content-roots.html
in Webstrom 2019.2 is it now avilable to open attached project to the current project.
Open multiple projects in one window
When you have a project opened in WebStorm and want to open another one, you can now attach this second project to the opened one, so that you can see both of them in the same IDE window. If you want to close the attached project, right-click its root in the Project view and select Remove from Project View.
https://www.jetbrains.com/webstorm/whatsnew/

How to display all projects in the Project View in PHPStorm?

In eclipse / Zend Studio the project manager displays per default all projects of the workspace (or of one of its Working Sets, if selected):
Now I'm looking for the according configuration in PHPStorm, that shows only one project per window:
How can I see all my projects in the project view of the same window?
PhpStorm does not support multiple independent projects in one window / frame:
https://youtrack.jetbrains.com/issue/WI-15187 -- star/vote/comment to get notified on progress.
But ... you can list files from another project there (in Project View panel). If that is good enough, then just go to Settings | Directories and add desired folder as an Additional Content Root. P.S. This also means that the setting from current project will be applied to all content roots.