How to hide matching lines in Kdiff3 - diff

Does anyone know of a way to hide matching lines in Kdiff3 (in Windows). I really only care about the differences and would rather quickly scroll through that list of differences without all the just filler (i.e. matching lines) in between.
I'm open to other software options but I find it hard to believe Kdiff3 doesn't have this functionality.

Related

How to display more files on top tab in VS Code?

Is there a way to configure VS Code to increase the number of files that are able to be displayed across the tabs at the top?
There are currently just 4 files1 visible in that top area, but ~10 would be ideal:
Example
Sublime text uses smaller font on file names (despite similar font size of the code itself), and so allows about twice as much space for displaying files:
Current work around
I hit opt + command + right arrow a few times to quickly survey open files.
Ideas
Perhaps open files could be quickly surveyed (without key presses) if it is possible to:
Expand the area to have more than 1 row of files
Configure VS Code to show only part of the filename
Use smaller font on the file names (not the code itself), similar to sublime text
Something else?
1 The habits of using long file names, and having a lot of files open at the same time don't help, I'm aware of that.
workbench.editor.tabSizing
There's the "workbench.editor.tabSizing": "shrink" setting value, which is documented as so:
Allow tabs to get smaller when the available space is not enough to show all tabs at once.
(the default value for workbench.editor.tabSizing) is "fit".
workbench.editor.wrapTabs
As other have mentioned, there's the workbench.editor.wrapTabs setting, which you can find more about in this Q&A: Multirow Tabs for VSCode.
TL;DR from the setting's description:
Controls whether tabs should be wrapped over multiple lines when exceeding available space or whether a scrollbar should appear instead. This value is ignored when #workbench.editor.showTabs# is disabled.
git.decorations.enabled
You can shave a few pixels by disabling git decorations if you're working on a git project (of course- this is only if you're okay with disabling git decorations). Git decorations add letter indicators to the tab handles that summarize what has changed about those files. Ex. "M" means the file has been modified, and "A" means it has been added.
"git.decorations.enabled": false
workbench.editor.tabCloseButton
You can shave a few pixels by disabling the close button on tabs (if you're okay with that (you'll still be able to close the tab with the associated keyboard shortcut, or by middle-clicking the tab handle)):
"workbench.editor.tabCloseButton": "off"
workbench.editor.showTabs
If your aim is really to declutter, you can take the hardcore/nuclear route and do:
"workbench.editor.showTabs": false,
Et voila! Now the tab handles take up zero space because they're gone :D (and you can navigate tabs using ctrl+tab and ctrl+shift+tab (that's on Windows and Linux- not sure what it is on MacOS), or by using the Explorer view's "Open Editors" section (you might need to enable it first under the three-dots menu))

how to avoid floating windows cover either other floating windows or text NEOVIM

As you can see, while I type I get shown the signature of the function and the suggestion. But very often they cover each other.
Moreover, suggestion cover a lot of lines below the line I'm currently in, which could NOT be useful (e.g. I'd like to refer to them)
Is there a way to fix both issues? like pushing floating windows on the rightmost part of the currently window, where probably there are fewer lines of code ?
I think It could be really useful
it's not neovim version's problem.

What is the difference between empty space (>> >> >>) and empty space(......) in eclipse ide?

I know that,empty space (>> >> >>) in eclipse occurs due to use of keyboard(Tab) and empty space(......) occurs in eclipse due to use of Keyboards(Space bar) in the java editor.
What is the significance of it in programming and in the editors? Why is it shown differently in the Eclipse editors? What is the actual use of it and where it helps?
Can it allow to represent in the same way for, characters like new line(\n),vertical tab (\v),form feed (\f) etc.?
There are three ways of indenting: spaces, tabs and hybrid.
Spaces are environment-invariant: if you are indenting by two spaces, it will be two spaces in every terminal, every editor. Different programming languages have different coding style mores. E.g. Ruby is usually written with two-space indents, Python with four-space ones. Some people like space-based indentation, and can be very vocal about it.
Tabs will usually see people indenting by exactly one tab. It is up to the environment how to display it. The default is usually one tab in every 8th column, but editors will usually be able to adjust this. That way, if you disagree with a colleague about how many spaces are best, each can set their own environment as they wish. Some people like tab-based indentation, and can be very vocal about it.
Hybrid is a nightmare. If you mix spaces and tabs, expect trouble, as it will typically happen that you will encounter pieces of code that are horribly misformatted, wherever that colleague touches it. Avoid hybrid indentation at all costs. The only people who don't absolutely hate hybrid indentation are those who haven't dealt with it yet, or don't understand why any of this is happening.
Now, it is very hard to avoid the hybrid indentation if you don't know which indentation method is actually present in the file, especially if your editor is helpfully emulating tabs when you have space indentation, e.g. by deleting the whole indentation level when you press a single backspace (as is normal in most editors).
Furthermore, there are some horrible programming languages (such as Whitespace and Makefile) that semantically distinguish spaces and tabs, and it is thus critically important to see what each character actually is.

Marking/commenting Matlab code?

Is there any way to mark Matlab code (in Matlab) via some kind of add-on? I'm looking for something similar to what Microsoft Word has with its "Review" mode where you can highlight a certain phrase/section and make a comment on the side. When I say "comment", I don't mean the regular code comments that you do with "%" in Matab.
I've googled for this, but I couldn't find anything. Anyone know if something like this exists that I may have missed? It would really help me when I'm reading someone else's code and I have to keep track of things / make comments for certain lines. Even if commenting isn't possible, it would be nice to be able to highlight certain lines via some kind of "highlighter" like the one in Word.
No. This isn't possible.
In fact, most editors and IDEs (if not ALL of them) that I know don't even support this feature as each IDE will have to be specific in the way this is implemented (à la Trojanian). The only thing that I can think of is if you print out the code in PDF, then use bubbles within the PDF viewer to tack on your comments.
However, if you want to highlight a specific line in your editor, you'll have to set this up in your settings. Go to preferences, then in the Editor / Debugger options, choose the Display option, then choose Highlight Current Line. Choose whichever colour you see fit. I'm running MATLAB R2013a on Mac OS, and this is the window I get:
You'll see the Highlight Current Line feature. Change that to whichever colour you want. I have it as gray because I do like having the current line highlighted.

Setting up your editor: indentation and encoding

I'm developing a small project with some friends and we're facing some indentation issues. Each of us is using a different editor (we all have different favorites :) and we also are on different operating systems.
What is the best solution to be able to all develop together and set our programming editors so indentation and encoding is the same? What settings do you recommend and why?
You should have your version control system handle the line ending problems. In SVN, the "svn:eol-style" property can be set to "native" to handle auto-converting the line endings. I assume your code is ASCII or UTF8 so you don't have problems with character encoding.
As far as formatting goes, you'll have to choose roughly some style, such as where to put the braces, but there's no reason you have to have the same indent style, provided you use the same number of indents. That's a confusing statement, so allow me to explain: nearly every IDE ever has the ability to set tab widths to any value you want. If one team member likes to indent 2 character widths, another 4, that's fine. One tab character stored in the file can display either way based on IDE settings. Just configure your IDE to indent with tabs and then set the tab widths per your desires.
(at the risk of starting a flame war, this is why I am solidly in the camp of tabs in the tabs vs spaces war. strangely, the spaces folks seem to consider this very feature the reason to use spaces... I will never understand them).
If you are all insistent to have your own indentation settings, then you will need to use exclusively the tab character to indent the code. (Provided your various editors support this).
This approach is counter to the general consensus of using spaces and only spaces for indenting purposes.
Whatever you do, I recommend converting tabs to a common number of spaces. I know Eclipse can do this on the fly, but I'm not sure if edits like gvim can. In any case, with all spaces it is not up to the individual editors/IDEs to interpret how many spaces make up a tab. Also, if anyone's using a Windows editor/IDE, set it to use Unix-style newlines, so that you don't get the annoying ^M at the end of every line when you edit in a different OS.