How to import settings into CLion from Intellij? - intellij-idea

I'm working with IntelliJ and I have the IDE configured to my needs. I'd like to transfer these settings to CLion.
Is this possible? If so, how?
On the official sites there is no info on that so I'm assuming I'd have to do it by hand (using the settings files and try my luck).

File | Export Settings in IntelliJ IDEA followed by File | Import Settings in CLion should do the trick.
Another option is to use the Settings Repository for synchronization.
This option is not available when you are using settings sync with account or repository.

Related

Migrate intelliJ IDE everything useful from one system to another

I have been using the IntelliJ IDE for development on my macbook pro. I am not moving to a new macbook and will be installing the IntelliJ IDE on that system.
How can I migrate everything useful like installed plugins, settings, etc from the older system to the new system.
Use File | Manage IDE Settings... | Export/Import Settings... actions.
Note that this action is unavailable if you have a settings repository configured or if you have enabled Settings Sync.
See more in a related Share IDE settings documentation topic.

Import settings to IntelliJ via file system

I'm preparing an IntelliJ IDEA 2017.3 rollout for about fifty software developers working with Windows PCs. To make life a little easier for them I want to provide some default settings fitting our company infrastructure and coding guidelines.
I've found I could export a file settings.jar but every developer would have to import it manually. That's not ideal.
An other way is to share settings via built-in plugin settings repository. But I couldn't get it to work properly with a git repository located at a network share.
Maybe I could overwrite files in directory user.home/.IntelliJIdea2017.3/config/options but installations are typically restricted to write to program files directories in Windows at our company.
Question is: Is there another way to import settings in IntelliJ via file system? I heard about dropping exported settings.jar to plugins directory in IntelliJ installation directory but that's not working either.
There is no ready-made solution for this, however, you can write a small plugin that will import your settings file on startup, and deploy it to the plugins directory of your installation of IntelliJ IDEA.
You can find the implementation of settings import here. The current implementation is not decoupled from the user interface, so you can't invoke it from your plugin, but basically the only important part for your usecase is this:
val filenameFilter = ImportSettingsFilenameFilter(getRelativeNamesToExtract(dialog.exportableComponents))
StartupActionScriptManager.addActionCommands(listOf(
StartupActionScriptManager.UnzipCommand(tempFile, File(configPath), filenameFilter),
StartupActionScriptManager.DeleteCommand(tempFile)))
You can simply perform the same operation in an ApplicationComponent of your own plugin.

Is it possible to transfer all the plugins and settings?

I've been using IntelliJ IDEA on my Mac for too long. My company asked me to use their laptop but I need all my plugins and settings. I've never used IntelliJ IDEA on another computer so maybe it's easy, I really don't want to install all the plugins one by one since there are too many.
Settings can be moved using File | Manage IDE Settings | Export Settings / Import Settings or the Settings Repository plug-in.
As for the plugins, just copy the plugins folder from one system to another.

JetBrains: How to disable "These files do not belong to the project" dialog completely?

I want to use JetBrains IntelliJ IDEA for editing files that are external to my project. How do I permanently disable this Non-Project Files Access dialog? Is there a relevant registry setting?
There's a plugin for doing this, I also like the fact you can use Intellij as an editor with that plugin.
Non Project Files Unlocker. I'm using it with Intellij 15 and it's working fine.
But your version looks like older, I don't think, they they have some configuration for that. There's a feature request for this at https://youtrack.jetbrains.com/issue/IDEA-125379

How to properly import a Play 2+ project in IntelliJ 14+ with all integrated features (run, debug, test)?

I work on a Java based Play! project for severals months now and I'd like to import it completely in IntelliJ, meaning being able to run, compile, test and debug from IntelliJ, without the need to use the command line.
According to this post from Jetbrain, it seems to be possible, if I quote the article it says clearly : "Now you don’t need to switch between IntelliJ IDEA and Play console anymore. Everything is available right from your favorite IDE.", but I can't figure out a way to achieve this for now, even if I follow the tutorial provided by Jetbrains.
Here are the steps I've been throught :
Open my fav IDE IntelliJ ;)
Go to the project list window.
Import project
Import from external model and choose SBT as suggested in Jetbrains tutorial.
option "Use auto import" checked, option "create directories for empty content roots automatically" checked. Project SDK Java 1.7
Global sbt settings : JVM From project JDK.
Finish
By now, if I try to make the project and launch it from IntelliJ, I'll get scala compiling errors related to routes object. Thanks to this post, we can understand that this happens because scala routes are located to specific folders that needs to be included in IntelliJ sources settings for this project. So next step was :
File -> Project Structure -> Modules
Add target/scala-2.10/classes:target/scala-2.10/resources_managed:target/scala-2.10/src_managed as sources folders.
But my problem remains the same, routes object being unrecognized.
Notes : I have no scala facets in my project structure configuration nor can add one.
IntelliJ provides integrated support for the Play Framework for Scala and Java. Support is currently only available in IntelliJ Ultimate Edition (see the Frameworks and Technology section).
Assuming Ultimate Edition, the setup for Play is incredibly easy. Simply create a new project by importing build.sbt, then choose Add Framework Support and choose Play 2.
Once complete, you can start and stop Play using the Play 2 Run/Debug configuration. No command line necessary.
Here is a more in depth look at IntelliJ's Play project configuration.
You could try the command play idea if you are using play or activator idea if you are using activator. That will do the magic.