while coding on Eclipse neon I must have accidentally hit something, to where the font for the entire code screen, and the console became really small to where it was illegible. Please help; I tried to search this on google but couldn't find anything helpful.
thanks,
shereiza
[CTRL] + [=]
or
[CTRL] + [+]
but do be sure to use the keyboard + not the numpad one
You should be able to zoom by pressing Ctrl+'+' while your code view is active.
Edit:
To access the color and font settings, you might also try:
[Window] -> [Preferences] -> [General] -> [Appearance] -> [Colors and Fonts]
One of the options will be to restore all default settings, but you can also tweak each component individually.
Related
since 6 weeks i´m studying WI. Thats somewhere between business management and IT.
We´re using eclipse and i´m looking for a shortcut that allows to switch between the class-windows like alt + tab for Windows.... windows^^.
Thanks for help.
in tool bar go to Window>Preferences>General>key : change shortcut key as per your use and us can also fine another shortcut for eclipse.
I was searching for the same Shortcut.
I changed the class window accidently with a shortcut and then found out, that you can do it with tab + alt + right/left instead of alt + tab (changes the windows from Windows :D).
Make sure to tab + alt in a free row where no code is, as it will push the line to the right, because of the tab button.
Whoever will search for this.
You're welcome.
Use: Alt + Arrow Key Left/Right
well I've seen in Tips & Tricks of Eclipse that it's possible to get a variable name generated by eclipse by clicking Ctrl + Space. However I'm getting empty suggestions. Fors instance I'm typing this and click ctrl + space:
private Color
And I am supposed to get some name suggestions on it? All I'm getting is an empty list of suggestions. So what's turned off? Any idea?
Thanks in advance.
This is what I want to achieve:
I believe you are trying to get variable name e.g. color after private Color where Color is you class i.e. private Color color. I see that working in my eclipse.
To verify your settings, go to below settings and verify as they look good to you.
Windows -> Preferences -> Java -> Editor ->Content Assist
and
Windows -> Preferences -> Java -> Editor ->Content Assist -> Advanced
This is the default behavior after entering a Java type and a space, and then pressing CTRL+Space to activate auto-complete. For example, if you enter:
private Color
then activate auto-complete it will suggest some variable names for you.
An easier way than having to press CTRL+Space all the time is to change the characters which automatically activate auto-complete. I find it very useful to have all characters which could possible be variable names to activate auto-complete. Try having ._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ as Auto activation triggers for Java found in Preferences -> Java -> Editor -> Content Assist:
This way you can achieve how Visual Studio handles auto-complete.
Goto Window -> preferences -> java -> Editor -> content Assist ->Advances -> Select all the check boxes. DONE :)
private? It looks like you're creating something new.. eclipse cannot suggest in this case.
Autocomplete is for existing variables/functions/classes/etc.
I tried them one after the other and found out that the correct one is:
Windows -> Preferences -> Java -> Editor ->Content Assist -> Advanced: check Word Proposals
In Eclipse, it can get a variable name that you already made.
For example,
int awesomeVariable;
awesomeVariable = 50;
int superVariable;
superVariable =
If I press Ctrl + Space after that =, it would generate some things that it could fill in. For example, it might suggest awesomeVariable. Basically, it doesn't generate a name for you, it just auto-completes with things you have already created.
Ctrl + Space is maybe shortcuts of IM, so it is covered, I suggest you change the shortcuts of this function, for example: Alt + /,
if you don't know how to change shortcuts, please see the following steps:
click Ctrl + Alt + L twice,
find "Content Assist",
change Binding value to you like shortcuts(cannot same the other shortcuts),
click Apply button.
Thanks for everyones time and help. :)
I finally found it and the answer to this was that in my case the "java.awt.Color" wasn't imported and eclipse doesn't work on this one if it's not imported.
So it does suggest the name for you if your file had imported the class already, but if it hadn't it won't work.
I guess it makes the whole function pretty useless, but unfortunately that's how eclipse works. :/
it just suggesting you can also declare the variable by that name..it just helping you because it was a tool write..nothing to worry about that..you can give your own name as you like kk..
import Color Class to your class: import java.awt.Color;
When I am programming in Eclipse, the auto-complete \ suggestions box usually opens when typing a dot (for example after typing System. or SomeObject., and stays open while typing a similar code to any of the suggested.
This is what I'm talking about:
I often use the auto-complete \ suggestions box to my advantage, and there are couple of changes I would like to make in order to improve my productivity while programming, if possible;
Is there any way to make the suggestions box visible all the time,
showing suggestions in real-time (and showing a blank box when there
are no available suggestions) ?
Is there any way to add permanent custom suggestions to the suggestions box (e.g. a switch case template or a line of code like public String toString()) ?
Is there any way to re-order the suggestions box (e.g. class private variables before general functions or System.out.println() before System.out.print()) ?
Is there any way to re-design the suggestions box - i.e changing its text color, background color, re-sizing the suggestions box window and removing the yellow java-doc pop-up?
FYI, in Eclipse terminology this feature is called Content Assist.
Is there any way to make the suggestions box visible all the time, showing suggestions in real-time (and showing a blank box when there are no available suggestions) ?
No, that's not possible. You can invoke it any time you want via Ctrl+Space (Command+Space on Mac)
Is there any way to add permanent custom suggestions to the suggestions box (e.g. a switch case template or a line of code like public String toString()) ?
Yes, you can add your own templates via Preferences > Java > Editor > Templates
Is there any way to re-order the suggestions box (e.g. class private variables before general functions or System.out.println() before System.out.print()) ?
Not really. There is some control of the order for "cycling" through proposal types via Preferences > Java > Content Assist > Advanced, but it's not really what you're looking for. The order of proposals is, I think, based on the current context of when Content Assist is invoked.
Is there any way to re-design the suggestions box - i.e changing its text color, background color, re-sizing the suggestions box window and removing the yellow java-doc pop-up?
All of the customization option are available under Preferences > Java > Content Assist; color options are available under Preferences > General > Appearance > Color and Fonts, but I think the colors for that pop-up might come from your operating system color settings.
If you're using (or willing to use) Eclipse Juno (4.2) then there is a new project call Code Recommenders that you might find interesting.
E-Riz already answered all your other questions but for getting content assist in real-time there is a workaround
Under Preferences > Java > Editor > Content Assist there is an option for "Auto activation triggers for Java". By default it's set to ".". You can append to that all the alphabets (ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz) and then it should work.
Is there any way to re-design the suggestions box - i.e changing its text color, background color, re-sizing the suggestions box window and removing the yellow java-doc pop-up?
Just when the auto-suggestion box pops up, if you hover your mouse pointer to its botton-right corner, you'll be able to see mouse pointer turn into resize pointer. Resize it the way you like and next time when it pops up, it will be of the same size. Hope this helps. :-)
How can I disable some shortcut keys from windows 7?
I'm trying to use:
Alt + Shift + A
on eclipse but no success, and:
Ctrl + Alt + ↓
makes my screen go upside down instead of copying the lines I've selected..
Go to control panel and open the graphic controller property dialog by double clicking on the icon of your graphic driver (in my case it was Intel Extreme Graphics).
It may be different in your case.
In that dialog there must be an option to disable/enable the shortcuts.
In my case the shorcuts were called hotkeys.
Removing the checkbox before it solved the problem.
Those shortcuts are probably taken by your video card drivers. Go to the control panel of it and disable the shortcuts.
edit: What I'm trying to say is that windows is not taking those keys, it's another application.
I am trying to type in a pair of angle brackets in Eclipse, like "<>". However it shows up as a single quotation and a dot, like "'.". I tried a couple of times and found out that the angle bracket is actually located at back-slash's position.
Why is this happening? How can I change it back?
Thanks in advance.
Xi
I think this has to do with an annoying feature of Windows - I've had something similar for a long time in different programs (not just Eclipse).
If you have a non-English version of Windows, you probably have different keyboard layouts installed (for example, I have a Dutch and a US English layout installed by default). The key combination Alt + Shift switches between keyboard layouts. It's very annoying and it's a really strange feature - as if the keys on someone's keyboard would suddenly change?!
You can go into Control Panel, Keyboard Settings and remove the layouts that you don't want to use. (I removed the Dutch layout so there's only US English left), so that you can't switch to the wrong layout by accident again. Or you can go to the Advanced Key Settings in Keyboard Setting and turn off the key combination.
Hit Alt + Shift. If you don't want to spend time removing keyboard layouts like Jesper suggested, just hit Alt + Shift until you get the layout you need. It usually doesn't take more than a couple times. :)
I Am Doing This Via Windows Control Panel.
First time when changing font.I am restart Eclipse.(No solution than that to save my time) and then do this.
In windows 7 the language bar uses the LEFT ALT + SHIFT key sequence to change languages, so you can quickly change the language say to Spanish when writing a mail.
This sequence conflicts with many Eclipse shortcuts that use ALT + SHIFT, like rename!
You can remove the OS's setting by control panel > keyboards and languages > change keyboards > advanced key settings.
Julio
... Maybe you have your keyboard set for a different Locale(country)?
Also, you would probably be better asking this on SuperUser
Actually i think this must be something with Java SDK, because im having the same problem with IntelliJ. For example, in
public class MainActivity extends Activity {
/**
* Called when the activity is first created.
*/
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
ImageView iv
}
}
when i try to complete this snippet, with
ImageView iv = (ImageView) findViewById(R.id.iv_imagem);
after "iv" the character set in my keyboard is screwed, and instead of a QWERTY keyboard (i have portuguese language defined, and dont have other keyboards in control pannel) i have a AZERTY
in windows, other applications are is still normal
I had the same problem. I was editing Java code in Eclipse and the keyboard layout suddenly changed. On my windows taskbar I have a keyboard icon and I used it to change the keyboard layout between United States-International and Dutch. That did not solve my problem. My problem was solved when I had restarted Eclipse.
Keyboard handling of Eclipse is not perfect indeed: it confuses ctrl-alt with "altgr"!
So for example with Hungarian keyboard layout you cannot enter character '&', as it requires pressing altgr-C - but ctrl-alt-C was set to "SVN commit" by default...
(of course no problem in un-binding that combination in Eclipe, but it was not straightforward that ctr-alt conflicts with altgr, so what to look for)
I guess this probably happens if your script in Eclipse uses Robot class or any statements that use the combination of the keys, ALT+SHIFT OR CTRL+SHIFT. These combinations mess up with the functions of other keys after your script execution is completed or if it is stopped in between.
If you want to confirm if any of these combination is really messing up with your keys, then in your testng.xml file, just mouseover on any class name and it will be highlighted and underlined automatically, even though we have not pressed ALT nor SHIFT at this moment. It means that these keys are not released yet even though your script might have released them.
If you face this problem, then the control being in Eclipse, press CTRL+SHIFT and press ALT+SHIFT, and this resolves the above problem. Now, the keys in your keyboard work as usual.
with me, the strange thing is outside of eclipse (i use the ADT package), everything is ok. And restarting workspace, fixes the problem
this happens when i type any expression that might not be valid, like when i try to write
taskNameEditText = (EditText)findVie
of course, i want to write
taskNameEditText = (EditText)findViewById(R.id.task_name);
but after the first snippet, it changes the keyboard. And the code completion stops working too. So far the only working solutions i found where: 1 - restarting eclipse, 2 - start using IntelliJ
changing the key bindings wont work, just because i already have those unset. Also, "Alt + Shift" wont work, because this is not a windows (i use 7, 64 bits) problem