Eclipse - Change Console background color - java

I applied a theme for eclipse, where the Console's background color is to dark.
If I want to change it by right clicking on the Console -> preferences -> background color the new Color doesnt get applied. Is there a way to apply a new BG Color even when using a theme?
Thanks!

I had a similar problem with luna. Didn't work with the dark 'theme' and similar dark 'color and font theme' - had to reset to classic under main preferences. Then right clicking from within the console does change to the selected colour.
Maybe related to this recurring bug in eclipse.

I got the mentioned bug too but after right clicking it was too dark for me since the text colour is black.
The settings for the console background colour are located here:
Eclipse:
Window -> Preferences
Preferences:
-> C/C++ -> Build -> Console
(probably a similar path applies to Java too)
Console:
-> Background color
There are also two other console background settings in: Preferences: -> C/C++ -> Debug -> GDB -> Console and in Run/Debug -> Console.

Have you made sure that you clicked the actual 'Apply' button?
If so, try if you can change it from the the tab window and then pick Prefrences.
Window -->Preferences
Hopefully this helps you.

go to ->preferences->type:console-> click on "console" ->click on "Background color"

Related

Eclipse Javadoc Background Overrides Default

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.)

Folding (collapse/expand) codes in Intellij (How does it look like Eclipse?)

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. =)

Installed dark theme in eclipse, but scrollbars is still grey

I am using Eclipse Luna(4.4.0) and trying to make it completely dark. So I Installed a theme plugin:
Eclipse menu -> Help -> Eclipse Marketplace, search "Eclipse Color Theme Plugin"
In “Windows Preferences”, selected the “Dark” theme and
Eclipse menu -> Window -> Preference -> General -> Appearance -> Color Theme,
choosed “sublime Text 2″. Done, I'm just changed everything to “Dark”.
But, scrollbars is still grey
Does anybody know how to make it dark too?
Thanks in advance!!
Eclipse's built in dark theme is very problematic.
Check out the DevStyle plugin from Eclipse marketplace. It creates dark themes up to par with other IDEs like IntelliJ.
https://marketplace.eclipse.org/content/darkest-dark-theme-devstyle
For all mac users out there, you can change it in system preferences:
Apple menu > System Preferences, then click General > Show scroll bars
Select “Automatically based on mouse or trackpad.” i voila :)
cmd+space
System Preferences
General
Show scroll bars: "When scrolling" (see screenshot)
In my opinion though, this isn't a great solution because you don't see the scroll bar sometimes and sometimes it still shows the bright grey scroll bar depending on where you put your mouse.
If you want to get rid of that scrollbar, enable Show whitespace characters in
Preferences > General > Editors > Text Editors

IntelliJ -- how to highlight modified files that are under version control

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.

How to use Hotswap in Netbeans?

How to do that? I can't find any option for it in the IDE... Please help me, I'm clueless.
Run your app in "debug" mode
Modify your .java files and save them
Click on the "Apply Code Changes" button that appears on the toolbar (it looks like three linked green rectangles, or Tools -> Options -> Java -> Java Debugger -> General -> Appl code changes after save)

Categories