At the time of writing, the current version of IntelliJ is IntelliJ IDEA 2019.1.2 for the free Community download. Otherwise, that’s OK as we will walk-through the installation steps for IntelliJ. If you have programmed in another language before in the like of Java, you may already be familiar with the IntelliJ IDEA code editor. As a reminder, we will use the IntelliJ IDEA code editor to help us easily write and execute our Scala code. You do it in Preferences→Tools→Settings Repository with little + on the bottom.This tutorial is a much needed update on the previous instructions for installing the IntelliJ IDEA code editor. but you shouldn’t be able to randomly override those. There is also an option to set additional setting sources as read-only repositories - for example, if in your organization you have some live templates, file templates, deployment options, etc. You can also manually request an update with going to VCS→Sync Settings→Merge Your settings will be synchronized with repo each time you open or close IDE or with every Project Update or a Push from IDE is performed. This will try to merge your current IDE settings with those at the repository, and sometimes you may face a conflict □ After the initial commit with settings is pushed to a repository on the next computer you should rather pick “override local” or better “merge” button when adding the repository for synchronizing settings. You will have to repeat this procedure on every machine with a new token, you don’t want to use the same token everywhere. Also plugins settings but unfortunately not plugin list - you have to manually install plugins on every machine. If you inspect settings repository now you can see that your IDE code styles, color scheme, inspections, live templates a lot of other XML files are there. When you paste token to IntelliJ popup it should work like a charm and send your settings to GitHub. For Scopes all you need is repoĪfter you generate the token with a shiny green button on the bottom you will have one and only chance to copy it. Now the worst part - picking up the name for token, so if you call your computer for example Anton I suggest something like IDE settings - Anton so you know where it’s used and if you replace Anton with another machine you will know which token to remove. To generate new one you need to go to your account settings→Developer Settings→Personal Access Tokens and click “Generate new token” button You may be asked for GitHub login/password but it is recommended to use an access token that you can generate for each machine separately on your GitHub Settings page. You will now have to paste the link to your new repo and click Override Remote - this is like initial commit and push for your settings. I believe most developers already have an account there and since some time ago private repos are free.Īfter setting the repo copy its HTTPS addressĪnd go to IntelliJ File→Manage IDE Settings→Settings Repository, or CMD+Shift+A and type settings repository if you are lazyass like me. I recommend starting with creating new repository for your settings on GitHub. There is another option to sync your settings in IntelliJ Idea, with official JetBrains plugin IDE Settings Sync IDE Settings Sync but it has rating 2.1 out of 5 with a majority of 1s so… I stick with setting repo. I use the same repo for Android Studio and IntelliJ settings since I like to have the same settings for keyboard shortcuts, macros, default code style, etc. So I used the same repo on all machines (ok on 2 yet) and it looks like it’s solving my problem. What it does is basically storing your settings in the repository of your choice and automatically synchronizing local settings with those in the repo. Today by a complete accident I found that there is a thing called settings repository. And the other way around multiplied by the number of machines. If I find some setting that improves my workflow at my office machine, and after some time I want to work on a pet project on my own PC - I get this itch of not having this setting I had on MacBook… so I can export my settings and then import it. Keeping my IntelliJ settings in sync at all of those machines wasn’t really possible. My setup looks like this: I have Windows PC with Linux installed on a separate drive, also I have 2 MacBooks for work, and rarely used Linux ThinkPad. Today by a complete accident I found that there is a thing called settings repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |