Sublime Text Sidebar Highlighting Changed Row - java

After working on some javascript and installing some packages (Babel, Emmet, JsPrettier, Sublime Linter, Sublime Linter-eslint) and experimenting with Github, the row that I changed gets a yellow highlight on the side bar. This happens even for code (even other languages like Java) that I never used github with, which is frustrating.
Does anyone know how to disable this?

The yellow highlighting in the sidebar (it's not actually sidebar, it's called the gutter region) is an example of the incremental diff functionality of Sublime Text, which is used to track modifications done to a file. To disable that, you can to go to command palette (using ctrl+shift+p) & then type Preferences: Settings. In the right hand side of the newly opened window, you'd need to add mini_diff: false. That should disable showing all those highlights in the gutter.

Related

Linux or Sublime Text tab-style auto complete for Eclipse?

Is there a way to enable Sublime Text style tab-autocomplete in Eclipse. I've gotten very used to simply typing the first few letters of a variable name in Sublime, hitting tab to complete the variable name, and then moving on without thought. It's proving to be a tough muscle memory to break as I transition to Eclipse.
I know about CTRL + Space for bringing up the code completion menu for automatically generating certain attribute names and whatnot, but I'm more referring to that really quick completion of names while I type them.
Maybe a quick eclipse hack will work for you?
I have never used Sublime's autocomplete, but it sounds like Xcode has something similar. Just fill the "auto activation triggers" textbox with any/all characters that you'd want to toggle autocomplete.

Auxiliary arrows in forms like in Eclipse

When you open a dialog in Eclipse, where is a form layout, you can see that when you hover your mouse over some item, its label or space between them, there's an auxiliary arrow shown. Screenshot:
My question is: is there any (simple) way to achieve the same in Java with SWT and JFace?
Regards
No there is no standard way to achieve this through SWT or JFace, as it is not a built in feature. It is not that difficult to add on your own though.
Have a look at this ConfigurationBlock.java file from the PDE source. This class is the base for all option blocks in PDE preference pages. This exact same code snippet is also used by JDT but it has a different copy in OptionConfigurationBlock.java.
The method that gets called for each combo control is ConfigurationBlock#addHighlight(..), which is responsible for adding the highlight when the control is in focus or when mouse is hovering over its label.

Eclipse with Java wont display matching variables

Hey guy,
I haven't let this get to me till now. My Eclipse used to show me where I used other global and local variables when I clicked on one of them. It doesn't anymore. I looked at General>Appearance>Colors and Fonts. In the Java folder I find something that looks like what I want. It's the Colored Labels - match highlight. The description says: The background color used to highlight matches when colored labels in Java views are enabled. I looked for that in the Java> How that's so weird I can't find it again as I'm writing this message. Anyway I guess that's what I'm looking for. Enabling the colored labels in Java. Where is that?
To access to your variable location: you have to click on your variable and maintain the "ctrl" hitted.
for color: right click in your java class, go to "open with" then select java editor, if the color's problem persist go to Windows>preferences>Java>Editor ther click "restore default" or specify your editor, then click ok.
Hope that my intervention helps you.
I tried window -> preferences -> java -> editor -> mark occurrences -> and selected all options.
Now it works.

Eclipse text-editor drag-and-drop mouse click key combination

In the Java source editor in Eclipse, you could select a block of code, pick it with a mouse click and drop the block of code into another area of the code.
You can't do that for other text editors like XML, HTML, etc. I had to press a key combination before I could use the mouse to move and drop the selected text. I have a new Eclipse set-up now and I can't recall what the key combination is. I tried ctrl-shift, ctrl-alt, alt-shift, and ctrl-shift-alt. None of them work. I had drag-and-drop enabled.
Is there something else on Eclipse that I had installed in my old Eclipse set-up that I forgot to install in my new Eclipse set-up? It shouldn't be because the text editor config has a check box for "enable drag and drop" which I enabled.
Of course, if you are one of those guys who wrote the eclipse text editor, you should also answer this question:
why did you not make the other text editors behave like the Java code editor? Why did you make us into having to do a key-combination to perform drag and drop for the other editors? What's wrong with having all the editors exhibit the same behaviour?
I woogled and googled and could not find any eclipse manual that would tell me what the key combination is. I also could not find it in the local help files. If you required us to use key-combination, why did you not document that in a manual?
My apologies, but I realise I sound a little frustrated now.
The text DnD (Drag and Drop) feature (initially introduced by bug 11624 in 2007) has been slowly extended to various editors, as reported by the bug 231294:
Tested in EclipsePdt-2.2.0.v20100427
Verified fixed for:
PHP files
JS files
Still reproducible in:
CSS files
HTML files
XML files (source view)
So it is still "work in progress".
The relevant blocking issues are:
bug 178104: [DND] Need to revisit dnd API to allow multiple drop targets
bug 173405 Make use of IDragAndDropService (Show Votes)
bug 195655 Drag'n'drop selected text

Library for eclipse style tooltips?

Does anyone know of an open source swing tooltip library that works like eclipse's tooltips? Specifically, the functionality I'm looking for is a tooltip that acts like a regular tooltip, but persists when you press F2 (or some key) so that you can copy the contents to the clipboard.
Thanks.
Not tested myself, but maybe the JCustomTooltip (based on the javax.swing.JToolTip class)
of prefuse.org:
setPersistent(boolean inter)
Sets if the tooltip will stay persistent on the screen to support interaction within the tooltip component.
Since the sources are available, that could be a starting point to code your own version.

Categories

Resources