SublimeText: bookmark a line using mouse? - mouse

I am switching over to SublimeText 2 from Textmate.
In TextMate, a line can be bookmarked with the mouse by simply clicking the line number. I've been doing this for many years, and while I'm sure some people may prefer keyboard shortcuts, I'm not one of them.
Can I bookmark a line in Sublimetext using the mouse? Is there an option where this can be enabled?

Currently there is only keyboard shortcut support. You can add mouse click feedback here http://sublimetext.userecho.com/topic/19525-add-bookmarks-support/

Related

VSCode: Disable mouse+ctrl interaction

I often double-click to select followed by ctrl+c to copy. I am finding in vscode that ctrl press with the mouse over a word can perform an action. In some cases it selects the whole line, and in others it jumps to the definition of what is underneath. Is there a way to turn this off?
Note that if you move the mouse cursor off the word then it appears the action is not performed.
You could click on Visual Studio code->Preferences->KeyBoard Shortcuts. Keyboard Shortcuts page opens up. You could change any of the keyboard short cuts, by click on edit icon on the left as shown below
You can change the behavior of these features or disable them altogether by going to Tools > Options > Text Editor.
https://devblogs.microsoft.com/cppblog/productivity-structure-visualizer-ctrl-click-to-go-to-definition/

Key binding for changing eclipse tab traversal

When using eclipse, I often use the find/replace tool without touching the mouse. I'll press Ctrl+F, type the text I want to find, press tab, type the replacement text, then press Shift+Tab 3 times, to bring focus to the "replace all" button, then I press Space to perform the action and ESC to close the window.
Today, I tried this and tab will only switch between the "find" text box and the "replace with" text box, meaning I have to go to my mouse to perform the "replace all" action, which takes forever (comparatively). I have had this problem before, and thought I recalled a key binding that changes the focus traversal policy for eclipse, but I cant seem to find it now. Googling has turned up nothing, but I don’t think I am searching for the right terms. I don’t think this is OS related, but I am on a Mac.
Thanks in advance!
I finally found this. It was OS related- Mac has a setting to allow tab navigation through buttons.
System Preferences-> keyboard, at the bottom select "all controls"

Eclipse OSX Keyboard shortcuts find/replace

Been using Eclipse for years in Windows and when I do a Find/Replace I use keyboard combinations like alt+d for and alt+n for "Replace next"/"Find next". On Mac there doesn't seem to be a way to do this quickly by keyboard. I have to Tab around to the button I want which is generally slower than using the mouse. How can have a direct keyboard shortcut to do this?
Mnemonics are discouraged: https://developer.apple.com/library/mac/#documentation/Java/Conceptual/Java14Development/07-NativePlatformIntegration/NativePlatformIntegration.html#//apple_ref/doc/uid/TP40001909-212166
I hate it, too.

Navigating the Content Assist List in Eclipse

Here are the ways the Eclipse documentation states you can navigate the Content Assist list:
You can use the mouse or the keyboard
(Up Arrow, Down Arrow, Page Up, Page
Down, Home, End, Enter) to navigate
and select lines in the list.
But all of the options require you to move your hands significantly away from their natural place on the keyboard!
Are there any other, quicker ways I can navigate this list? Something like tab, or the j/k from vi?
This is a great feature, and you can implement it like so: bind movement keys in Eclipse's key binder and then use them in the content assist menu!
Preferences/General/Keys
Line Down: Bind to Ctrl+K
Line up: Bind to Ctrl+I
(both when 'Editing Java Source')
and then try moving with Ctrl-K/I when the content assist pops up!
In Kepler, as jed mentions in the comments, select "when editing text" instead and it should work.
If you try to fill in the content manually, Eclipse will move.
The search is quite advanced, e.g. "ArL" can match ArrayList, etc., so if you know what you are looking for, instead of navigation you could use search.
This is certainly not a solution for everyone, but if you switch to the Emacs keyboard layout you can just use the key bindings for the "previous line" and "next line" commands, e.g., Ctrl-P and Ctrl-N.

Eclipse IDE: How to zoom in on text?

I want the same behaviour Firefox has, when you use the scroll button in the mouse to zoom in and out on the current view.
Is there something like it for eclipse?
There is a project from a guy called 'tarlog' that made a plugin for eclipse at this google code site: http://code.google.com/p/tarlog-plugins/downloads/detail?name=tarlog.eclipse.plugins_1.4.2.jar&can=2&q=
It has some other features for eclipse, amongst which is Ctrl++ and Ctrl+- to change the font size, it's frickin' awesome.
Too late but it could be helpful :
Go to Window Menu > Preferences > General > Appearance > Colors and Fonts
then go to Java > Java Editor Text Font > Edit
The Eclipse-Fonts extension will add toolbar buttons and keyboard shortcuts for changing font size. You can then use AutoHotkey to make Ctrl+Mousewheel zoom.
Under Help | Install New Software... in the menu, paste the update URL (http://eclipse-fonts.googlecode.com/svn/trunk/FontsUpdate/) into the Works with: text box and press Enter. Expand the tree and select FontsFeature as in the following image:
Complete the installation and restart Eclipse, then you should see the A toolbar buttons (circled in red in the following image) and be able to use the keyboard shortcuts Ctrl+- and Ctrl+= to zoom (although you may have to unbind those keys from Eclipse first).
To get Ctrl+MouseWheel zooming, you can use AutoHotkey with the following script:
; Ctrl+MouseWheel zooming in Eclipse.
; Requires Eclipse-Fonts (https://code.google.com/p/eclipse-fonts/).
; Thank you for the unique window class, SWT/Eclipse.
#IfWinActive ahk_class SWT_Window0
^WheelUp:: Send ^{=}
^WheelDown:: Send ^-
#IfWinActive
Starting from tonight nightly build of 4.6/Neon, the Eclipse Platform includes a way to increase/decrease font size on text editors using Ctrl+ and Ctrl- (on Windows or Linux, Cmd= and Cmd- on Mac OS X) : https://www.eclipse.org/eclipse/news/4.6/M4/#text-zoom-commands . The implementation is shipped with any product using a recent build of the platform, and is more reliable that the one in the alternative plugins mentioned above.
It will be more widely available within weeks, when the IDE packages for Neon M4 will be available, and it will be part of the public Neon release in June 2016.
I've answered it here.
How can I change font size in Eclipse for Java text editors?
For Eclipse Neon
To Increase Ctrl +
To reduce Ctrl -
For Zoom In: CTRL + SHIFT + +
For Zoom Out: `CTRL + SHIFT + -
To zoom on Eclipse you can use : CTRL SHIFT + OR -
As per the recent changes you can use:
(1) Ctrl/Shift/(+) for Zoom-in
(2) Ctrl/Shift/(-) for Zoom-out
As mentioned in another answer, this plugin
http://code.google.com/p/tarlog-plugins/downloads/detail?name=tarlog.eclipse.plugins_1.4.2.jar&can=2&q=
makes Ctrl-+ and Ctrl-- zoom in and out. On MacOS that would be ⌘+ and ⌘-.
But at least on MacOS Lion and Eclipse Helios, ⌘- worked but not ⌘+ – no key combination (and I tried a bunch, including ⌘= and variants with Ctrl and Shift) would increase font size. However, by changing the key bindings, I was able to get it to work.
Preferences => General => Keys
Commands "Zoom Out" and "Decrease Font" were already set to ⌘- (and that seemed to work), so I set "Zoom In" and "Increase Font" to ⌘= (one of them was that and the other was ⌘+), and that worked.
go to Eclipse > Prefences > General > Appearance > Color and Fonts > Basic > Text Font
Font problem will resolved I guess.Dont need a any plugin for this.
Just by pressing Ctrl + Shift + '+' or '-'.
At least, it worked for me at Eclipse "2020-03" version.
Here is a cool way of ensuring zoom in and zoom out with mouse scroll-wheel in the Eclipse Editor. This one takes inspiration from the solution above from naveed ahmad which was not working for me.
1) First download Autohotkey from http://www.autohotkey.com/ and install it, then run it.
2) Then download tarlog-plugins from https://code.google.com/p/tarlog-plugins/downloads/list
3) Put the downloaded .jar file in the eclipse/plugins folder.
4) Restart Eclipse.
5) Add the following Autohotkey script, save it then reload it (right click on Autohotkey icon in taskbar and click "Reload this script")
; Ctrl + MouseWheel zooming in Eclipse Editor.
; Requires Tarlog plugins (https://code.google.com/p/tarlog-plugins/).
#IfWinActive ahk_class SWT_Window0
^WheelUp:: Send ^{NumpadAdd}
^WheelDown:: Send ^{NumpadSub}
#IfWinActive
And you should be done. You can now zoom in or zoom out with ctrl+mousewheel up and ctrl+mousewheel down. The only caveat is that Autohotkey must be running for this solution to work so ensure that it starts with Windows or run it just before firing Eclipse up. Works fine in Eclipse Kepler and Luna.
The googlecode fontsupdate does not work anymore unfortunately. You can however just download the code from github:
https://github.com/gkorland/Eclipse-Fonts
Just download it as .zip, and add it in eclipse:
Adding a local plugin
Then you have the familiar buttons again!
On Mac you can do
Press 'Command' and '+' buttons to zoom in.
press 'Command' and '-' buttons to zoom out.
Even more reliable than #mifmif :
Go to Window Menu > Preferences > General > Appearance > Colors and Fonts
then go to Basic.
This section has about 5 different fonts in it, all of which contain a size. If you go to an item in any other section (like Java > Java Editor Text Font as #mifmif suggested) the Edit Default and Go to Default buttons will be enabled. Clicking the latter takes you to the corresponding item in the Basic section. Clicking the former lets you edit that item directly.
Changing the Basic font items will handle not only Java text but just about every other text in Eclipse that can be resized, as far as I can tell.
Here's a quicker way than multi-layer menus without resorting to plug-ins:
Use the Quick Access tool at the upper left corner.
Type in "font", then, from the list that drops down, click on the link for "Preferences->Colors and Fonts->General->Appearance".
One click replaces the 4 needed to get there through menus. I do it so often, my Quick Access tool pulls it up as a previous choice right at the top of the list so I can just type "font" with a tap on the enter key and Boom!, I'm there.
If you want a keyboard shortcut, Ctrl+3 sets the focus to the Quick Access tool. Better yet, this even automatically brings up a list with your previous choices. The last one you chose will be on top, in which case a simple Ctrl+3 followed by enter would bring you straight there! I use this all the time to make it bigger during long typing or reading sessions to ease eye strain, or to make it smaller if I need more text on the screen at one time to make it easier to find something.
It's not quite as nice as zooming with the scroll wheel, but it's a lot better than navigating through the menus every time!
What I am doing is using the Windows 10 magnifier. Not the same as zooming on firefox, but it has been quite useful.
The tarlog plugin, combined with removing -Dorg.eclipse.swt.internal.carbon.smallFonts from eclipse.ini, helps my tired eyes on MacOS Yosemite with Eclipse Luna (4.4).
Problem: Didn't work for me for a PyDev foo.py Python file.
Workaround: Open a file named foo.java - change the font size. Go back to foo.py and voila!! - the python font size matches the java font size.