Any idea if it's possible to update my project when I open Intellij?
I found the VCS background configuration but none of the options seems to do the trick.
I don't think this is possible. You have to manually pull to fetch changes. There is a button in the top right-hand side with a blue arrow and the word VCS on it. A few fewer clicks than using the menu pull downs.
Related
Today I added Material Theme plugin to WebStorm and I believe this is the reason behind changelist not appearing on the sidebar.
To be precise, this is what happens in IntelliJ when I make change to a specific line of code and click on the yellow bar that appeared after I removed the semicolon:
The change I made can also be seen under VCS -> Local History -> Show History menu option, which shows the diff between the previous and current version of that file.
However, performing the same action in WebStorm doesn't show the changelist/diff on the sidebar:
which means that the only way I can see it is by going to VCS -> Local History -> Show History which is very tedious:
I found being able to quickly revert/lookup the changes on the fly by clicking on that coloured bar really handy, could someone tell me if there is a setting in the IDE that enables that? I looked up and down but couldn't find anything relevant, perhaps I wasn't looking for the right keyword.
Thanks in advance.
Change markers are there for me when using Material UI plugin. Do you have Highlight modified lines in gutter enabled in Settings | Editor | General?
I will give my use case first. I have two similar android studio projects which needs to be opened always. Now what happens is, I often make changes in wrong project because there is no easy way to identify which project I'm on by simply looking at UI (other than looking at the project name on top- which will go away on full screen). So it would be great if I could use dracula theme on one project and default theme on other. Is there any way to achieve it.
There is a way to change the background color of project pane and recent files window.
Goto Preference -> Appearance & Behavior -> File Colors -> {Add project files and set color}
Got the solution from here
There is the ability to "to define any image as a background".
Set a background image for the current project only, or for any project you open or create anew.
To set a background image
1. Either press:
Shift twice (Searching Everywhere), or
Ctrl+Shift+A (Navigating to Action)
and start typing set back
2. In the dialog box that opens,
Specify:
the image you want to use as the background,
its opacity,
filling and placement options.
Choose to show background in:
the editor and tool windows, or
in the IntelliJ IDEA frame.
Selecting checkbox This project only:
Show background in the current project and ignore this background in the other projects.
https://www.jetbrains.com/help/idea/2016.2/setting-background-image.html
In Eclipse, when click Synchronize view it will show up a tree structure of diff comparison from local to svn repo. Click on each file will pop up view to show code diff.
Is there a similar feature in Intellij and how to activate it? I am on latest Intellij Ultimate btw.
Click on the Version Control button on the bottom, click on the Incoming tab. Hit the refresh button (circle with arrows). First time it will ask you if you want to set up automatic refresh. It will then show any changes pending from the repository. You can click on files and get a diff. (You may have to right click on a revision and select "Show Affected Files".)
There is no exact same view in IDEA. See https://youtrack.jetbrains.com/issue/IDEA-119596
You can use Subversion -> Compare to the Latest repository version from a file's context menu.
There is also the Incoming tab that shows changes from the server not yet applied to your working copy. You could invoke Show Diff with local from the Details pane of the Incoming change
I'm talking about getting the same effect you get when you commit/merge/diff and are reviewing your changes.
I would like to have code I added to be highlighted. Right now if you go under VCS, Editor Gutter and VCS annotations, both of them have Foreground disabled. I was wondering if there was a way around this.
There is an IntelliJ plugin called Git Scope that provides the functionality you are looking for.
You can install it by going to Settings > Plugin > Marketplace and searching for "Git Scope".
This is not possible without an additional plugin (see the other answer). With any plugins, your current VCS changes are shown with markers in the gutter.
In my IntelliJ Idea 13.1.2 IDE I keep running into situations where I'm selecting on a click and drag via my laptop touch pad. I keep accidentally clicking and dragging text and cutting lines. I've searched the options and settings panels for the words click and drag but I don't see a way to turn this feature off. IntelliJ's help talks about how to use click and drag cutting but doesn't say how to disable it.
Does anyone know how to disable cut and paste through click and drag in the IntelliJ IDE?
I found it in Settings → Editor → General.
Under the Mouse heading. The option is called "Enable Drag'n'Drop functionality in editor".
This also seems to disable drag and drop moving of files though.
In WebStorm 2020.1 (and presumably in other Jetbrains IDEs), the related option 'Move code fragments with drag-and-drop' is in Preferences > Editor > General:
Unchecking the checkbox does the trick without unwanted side effects such as also disabling the drag-and-drop operations for files etc.
There is no way to disable Drag-n-drop highlighted text in the editor itself!!! ALT guard for drag-n-drop files is a good idea as I accidentally drag and drop files on daily basis. Kudos for discovering that I just enabled it.
I have contacted Intellij support to give us a setting that we can disable in editor drag and drop. I think that is a stupid feature in the first place...