In Eclipse, it seems like all the keyboard shortcuts work, except for those that zoom in/out. (I'm on Windows and using Eclipse Version "Kepler Service Release 2") I have already restored the default keys in my preferences as other StackOverflow posts have advised, but it still doesn't work. Does anyone know why? Thanks!
I'll provide an answer, but you haven't really provided enough information for anyone to be confident that they are fully dealing with your problem.
It would still be useful to know what version of Eclipse you're using.
The first thing to do, is determine exactly what the binding is for the "Zoom In" and "Zoom Out" commands, by looking in the "Keys" section in Preferences. It's easiest to type "zoom" in the filter field to limit the table to those functions. I imagine you've already effectively done this, but it is a prerequisite.
The next thing to do is look for conflicts. There are two ways to look for this. First, check the Eclipse log. It will note if there is a keybinding conflict. Second, in that same "Keys" list, remove "zoom" from the filter (if it was there) and click on the "Binding" header to sort by the key sequence. Then page through the list until you find "Ctrl++" and "Ctrl+-" in the list, which I assume are the bindings you have. What you want to check for is if there is another binding in that list where "Ctrl++" BEGINS the key sequence, and is longer than that. Do the same for "Ctrl+-".
If you still don't find any clues from this, I suppose it's possible there's something else you have installed in Windows that is capturing that key sequence. I don't know how you would check for that.
Related
I've googled for this (perhaps poorly?) and I can only seem to find list of key bindings for vscode. So far I haven't found any list of the rules you can add to key bindings (in the when-part). Right now for example, I want to find out if there's a way to make sure a key binding is only active if I have the version control sidebar up and focused. Kind of like:
filesExplorerFocus, terminalFocus, editorTextFocus and explorerViewletFocus.
Since there is a command for setting the focus to the version control sidebar: workbench.view.scm I've experimentally tried scmFocus but to no luck.
Now this is a specific problem, but I'd really like to save myself some time and just be able to run a few ctrl+f through a document of all possible when-rules.
Vscode when clause commands. I only found it through this issue - so there may be a few other undisclosed when clauses: when clause disclosure issues. I see nothing for when the version control sidebar is active though. Perhaps ask about it at that issues page above.
See also https://stackoverflow.com/a/65584576/836330 and especially https://stackoverflow.com/a/65584576/836330
I have a quick question that might save me a few seconds of annoyance every day. I know that eclipse can do a lot of autocomplete magic, so this might be possible:
As a programmer who learned with python, I constantly forget to surround contitions in control structures (like if or while) with parentheses. How do I make eclipse autocomplete opening and closing parentheses when I finish typing while or if?
I am aware that I can autocomplete whole structures with ctrl-space, but how can I configure eclipse to do this by itself?
Any help is appreciated.
So in stock Eclipse, the usual way to bring up assisted content is to type Ctrl+Space. The problem with this is that it brings up both Help Proposals and Template Proposals, with the Help Proposals displayed first. You end up wasting time scrolling down to find what you actually want from the Template Proposals. And there's just that much more clutter to choose from.
The solution is this:
Go Window->Preferences->General->Keys. In the type filter text search for "Template". This should bring up a "C++ Content Assist (Template Proposal)" line. Click on it. Now map this to whatever shortcut you'd like (I did Shift+Space because that's an easy one to do while typing). Make sure to click on the "Binding" option to do this. Click "Ok" and you're done!
If you ever want to add or change what is brought up by that shortcut, and for which specific strings it works, just go Window->Preferences->C/C++->Editor->Templates and you can edit those to do exactly what you'd like when using that newly assigned shortcut.
Hope this helps.
EDIT: I am unable verify if this works for PyDev, as I'm running Eclipse Oxygen, which doesn't currently offer PyDev or the Eclipse Marketplace Client plugin. However, my guess is this would still work in PyDev. Best of luck!
Sources:
Setting auto complete shortcuts in Eclipse
How to change the Control+Space autocomplete shortcut keys in Eclipse for Android
Thanks for any help, but the only thing that seems to work are workarounds. My prefered "solution" is to change the Auto activation triggers for Java in Preferences>Java>Editor>Content Assist from . to .iwfs, so that the autocomplete dialog automatically pops up when I start typing if, while, for or switch. Then hitting enter will do exactly what I needed.
Netbeans has a nifty shortcut completion, I use while I type. It works in comments, in strings. Pretty much places where regular completion is useless. It basically autocompletes using the editor scope (in other words, whatever word matches closes to the point you are typing). Is there something similar in Eclipse ? I am making a transition due to lack of mybatis/mylyn support in netbeans. You can read more about it here https://blogs.oracle.com/chengfang/entry/why_am_i_using_netbeans .
It's called Word Completion. The key binding may vary; Ctrl/Cmd+Shift+L to find out.
CTRL+Space will show and sometimes autocomplete (depends on the settings you choose) methods names, variables and etc.
You can read more about specific settings and further fine tuning here.
Recently I've been finding myself doing repetitive tasks. I would click button A, highlight text field A, type in some text, click an APPLY button, click on a drop-down box and select a specific option depending on the item I'm working with, select it and hit APPLY, then repeat this process only a couple hundred to thousand times.
So I thought maybe there's a way I could automate this? Macros then came to mind. However I've never wrote macros before so am not sure of several details such as
-what tools should I even work with?
-how do I determine which button to click?
-ideally, I would want to be able to read input from a text file to specify what should be typed in and which option should be selected from the dropdown list. Is this even possible? It seems like an operation that require some intelligence.
I am not picky on tools nor about cleanliness. I just want to be able to automate the process. It will be for personal use unless I find a convenient way such that others can use it as well.
Some details about the dropdown box: when the box is focused, I can hit the DOWN key to scroll from option to option. The items that I have to associate with these options are named exactly the same, so they appear in the same "index" order (meaning, the first item and first option appear at the top of the list, second item and second option appear after, thid item and third option...etc)
The placement of all of these fields can be fixed, so if I have to manually specify where on the screen I should be clicking, that is also a possibility.
Any idea where I should look?
If you're using Windows, AutoIt is a really nice tool.
It records actions (like a word/excel macro)
It offers a BASIC like language + API which is really easy to program (if you need to)
The API is pretty powerful
Check for Windows with a certain title
Automate klicks
...
You can "compile" your scripts into exe files so you can share your tools
It comes bundled with Scite (a nice text editor) + AutoIt syntax higlighting
But you can use any editor you want
It's well documented
It's Freeware
http://www.autoitscript.com/site/
On the Mac, there is Automator. Java has the Robot class in the basic library, to help with such automation. No doubt there are other similar tools.
I know some (crazy) people want to move from IntelliJ to Eclipse. On my side, I am moving the "normal way", i.e. from Eclipse 3.3 to IntelliJ 8.0.1
I really like it, but I am a little lost sometimes.
Do you know any specific IntelliJ guide or tutorial created specifically for Eclipse users?
For example, after some tests, I missed some options usefull on Eclipse (I don't say they don't exist in IntelliJ, I just say that I didn't find them !):
Automatic insert at the correct position of the ';' character
Actions made on save (format, reorganize and clean imports)...
Check this FAQ in the Jetbrains home page: link. It is not a guide or tutorial, but it goes through some basic concepts that Eclipse users should accustom themselves with when they move.
For automatically inserting ';' at the correct position (as well as braces) the last time I've looked (probably Idea 6, maybe 7) it didn't exist. My colleagues always wonder why I insert ';' in stupid places when I'm pairing with them. I told them to notify me when this feature becomes available in Idea, but until now they didn't.
There's the two topmost related questions (see right column) covering "Things possible in A that aren't possible in B" for both directions - you might find ideas there as well as in the comments to the answers where people tell you what to alternatively do.
Edit (maybe this is better here than in the comments);
...it seems to be somewhat possible. See the comment to my answer to the related question: . One could argue that CTRL-SHIFT-ENTER is less intuitive than ';', but in Idea you get used to type a lot more of such shortcuts than in eclipse... This comes closest to the functionality you asked for. Hope it helps...