My IntelliJ by default shows the modified files in blue and the unmodified files in black. It's not very sharp contrast so it slightly annoys me.
Where do I configure the appearance? I want to further highlight the modified files under the version control.
[UPDATE]
I found it following the answer, but many features were grayed out... why is that?
Go to Settings -> Editor -> Colors & Fonts -> File Status, here you can customize the appearance of file names depending on their statuses. See File Status Highlights in the IntelliJ documentation for more information.
Partially covered in the answer by #Marv:
Go to Preferences -> Editor -> Colors & Conts -> File Status, here you can customize the appearance of file names depending on their statuses.
You can also set the background in Preferences -> Appearance & Behaviour -> File Colors if you want more emphasis.
Related
My default workspace on Eclipse set the Javadoc Background color to black and it is impossible to read the text:
Javadoc black background
I have already tried to "restore defaults" at Window -> Preferences -> General -> Appearance -> Colors and Fonts, but it works until I close the workspace. Next time I open it again, the problem returns:
Preferences Javadoc Background overrides default
I have tried to find the file inside workspace\.metadata\.plugins folder that set this configuration, but I didn't find. I also tried to find other solutions, but I only found solutions for Ubuntu OS, and I am on Windows 7 with an Oxygen.3A Eclipse.
Has anyone faced this problem?
Thanks in advance.
PS1.: New workspaces comes without the error.
PS2.: I work with lots of workspaces at work, so creating new ones is not an option, because it will take hours to reorganize them.
I solved this problem on Eclipse 2018-12 by changing to a theme other than "Classic." Once I did that and restarted Eclipse, it looked like it should.
Preferences->General->Appearance.
Make sure Enable theming is checked.
Select a different theme from Classic and restart Eclipse.
Since you lose your current workspace setting for background color whenever you reopen the workspace perhaps Oomph has stored a configuration setting for background color for that workspace (black in your case), and that is being used on startup to override your most recent setting.
To resolve:
Select Window > Preferences > Oomph > Setup Tasks > Preference Recorder
Check Record into and select Workspace from the droplist.
Enter Javadoc.backgroundColor in the search field and then check the entry that is listed, so that your screen looks like this:
Click Apply and Close.
Select Window > Preferences > General > Appearance > Color and Fonts, select Java > Javadoc background and then click Edit... to choose the background color you want.
Click Apply and Close then restart Eclipse. After restarting you should see that your most recent color change is still being used.
Optionally, uncheck Record into so that Oomph doesn't record further configuration changes.
(I am not confident that this is necessarily the solution because it implies that someone had previously set the Javadoc background color to black as part of the Oomph configuration for the workspace, and that is not easy to do unintentionally.)
When IntelliJ IDEA detects I'm pasting a piece of copied Java code into a Kotlin file, it offers me to convert the pasted Java to Kotlin. This dialog contains a 'Do not ask again next time checkbox'. I checked this box and selected 'Yes', but now I want to undo my default choice. How do I do this?
I've looked and searched in IntelliJ IDEA's preferences, but haven't found the respective checkbox. Is it actually in the settings, or can I somehow reset default checkbox selections?
Preferences -> Editor -> General -> Smart Keys and somewhere down below you should find your checkbox (took me a while to find this, phew)
I've been looking for a method to disable automatic comment-generation in Eclipse (Mars Edition), and I found out that users could go into Window -> Preferences -> Java -> Code Style -> Code Templates and change the commenting templates as they wished, but Eclipse still automatically check-marks the "Generate comments" checkbox when creating a new file. Is there a way to disable the automatic checkmark? Thank you!
Turns out users don't have to edit all the code templates to get rid of automatic commenting!
Once navigating to the Code Templates Panel from the path described in the question, there's an option at the bottom of the panel to "Automatically add comments for new methods and types." Once you uncheck this box, Eclipse will no longer check the box to generate comments automatically when creating new files.
I got to InteliJ from Eclipse. So, I am programming in Java (for Android) in InteliJ now.
I have problems with FOLDING (collapse/expand) style in IntelliJ.
This is a sample of code folding in Eclipse (and I love it) :
and This is code folding in Intellij (or Android Studio) and I hate it :
Is it possible to convert code folding style in InteliJ to Eclipse? (Eclipse folding is my target)
I want to hide #Override or any annotations from all methods in IntelliJ
I want to hide folded symbol {...} or move it in method name line in IntelliJ
Like this :
(in following picture, I removed #Override manually. so,I've moved to manually bracket { to the method name line.
)
Update 1 :
I tried to solve my problem in (Intellij) File -> Settings... -> Editor -> Code Folding , but I could not solve.
For Android Studio:
File --> Settings --> Editor --> General --> Code Folding
From that section you can select the way you want to fold your methods and inner classes etc.
Hope this helps.
You can change it by changing code formatter style.
For Mac :
Eclipse -> Preference -> Java -> Code Style -> Formatter -> Edit
For Window :
Window -> Preference -> Java -> Code Style -> Formatter -> Edit
Please check below links for more details.
http://www.wikihow.com/Change-the-Default-Format-Settings-in-Eclipse
Open Eclipse.
Click on the top tool bar and then click on Preferences.
On the left side of the box, expand Java option, expand Code Style, and click Formatter.
The active profile must be set to Eclipse[built-in], you cannot edit this setting, so make a new one by clicking the New... button.
Enter your new profile name and click OK.
You will now be presented with the "Profile 'name you set'"box.
There are 8 tabs: Indentation, Braces, White Space, Blank Line, New lines, Control statements, Line wrapping, Comments.
Click on each tab and make the changes. Dont forget to click Apply.
Now to format the current document, click on Source from the menu bar, click Format or press Ctrl+Shift+F.
Job well done. =)
I'm using the Kleper version of Eclipse. Days ago the IDE was working fine but I made some configurations in Window -> Preferences and my Eclipse doesn't show anymore which classes were changed.
When I say "classes were changed" I mean the symbol '>' beside the class name is gone. Example: > Teste.java
What can I do to fix that?
Probably you accidently changed a setting in General->Appearance->Label Decorations? There you can enable/disable annotations ... e.g. CVS anntotations.
It depends of your versioning system, but in general this is set in :
Window -> Preference -> Team -> your_version_system -> Label Decoration
in the Text Decorations tab.