How to put a horizontal line (separator) between rows in Gtk::TreeView - gtkmm

I'm writing a program using gtkmm-2.4 GUI package in Linux. How can I put horizontal lines as separators between rows of a TreeView?

You are looking for set_grid_lines:
someTreeView.set_grid_lines(Gtk::TREE_VIEW_GRID_LINES_HORIZONTAL);
The actual appearance of the lines is controlled by the current Gtk Theme.

Related

How to visually wrap lines at tab width in IntelliJ?

In other editors (Visual Studio Code and Netbeans which I mostly use), I can enable word wrap. Lines will then be split (visually) over multiple lines if the line is longer that the view area.
How can the same be enabled in IntelliJ (Community)? Right now I can't get any kind of word wrap (coding Kotlin).
The feature is called Soft-wrap. You can configure it here:

How to set tab indentation with GNAT GPS

I installed GNAT GPS 2017 and I would like it to indent my code with tabs using the same width as 4 space characters. I've gone into Edit->Preferences->Editor->Ada and tried all sorts of options (Use tabulations, default indentation 4, etc) but nothing seems to make it work:
Opening existing file with tabs causes GPS to display tabs with 8 spaces wide instead of 4.
Adding new code causes GPS to indent with 4 spaces but it inserts space characters instead of a single tab character.
Any ideas?
I think that GPS is working as-designed; unfortunately, that isn’t the way you want it to work.
The Preferences > Editor > Ada > Default indentation setting (and the four settings following it) say what screen appearance is required (assuming a monospace font, of course) if you hit the TAB key in a line.
The Preferences > Editor > Ada > Use tabulations setting says whether the editor should use 8-column-width tabs when possible to achieve the above.
#Jean-François Fabre suggested that "Their code parser doesn't support tabulations properly" - I think this may be that Jean-François compiles with -gnaty (style checks), and one of the default style checks is that the file isn’t indented with tabs.

Scroll multiple splits simultaneously in IntelliJ IDEA

In IntelliJ IDEA I often split the tabs vertically in order to be able to see multiple files at the same time. This can be useful when the two (or more) files have the same (or similar) structure and I want to compare them (e.g. language files).
My problem is that I'd like to scroll the two splits simultaneously, but can't figure out how (if possible). Is there any setting/plugin for this?
To compare two files in IntelliJ IDEA 14, just select them in the Project view (keep Ctrl pressed for multi-selection) and choose Compare Two File from the context menu. This will open the Differences Viewer. You can also compare a file with the clipboard or the editor contents.
The Difference Viewer scrolls both files simultaneously (there is a button to disable sync'd scrolling) and allows editing both. Differences are highlighted by word, by line, or not at all.
Joined / Wraparound / Continuous Tab Scrolling plugin seems to be what you are looking for.

purpose of vertical bar in programming IDEs/Editors

In this example. I'm using Phpstorm Code Editor and I wonder the purpose of this Vertical Bar
This is a visual limiter of the line length.
Usually the code convention in programming languages or in particular project requires to have the line of code to be limited by length.
For example Python's PEP 8 coding convention requires it to be limited to 79 characters.
So basically this limiter in your text editor or IDE is just made for convenience to help you to control the maximum line length in your code. Usually you can set-up the maximum code line length in the settings.
From: http://www.jetbrains.com/phpstorm/webhelp/editor-appearance.html
Show right margin (configured in Code Style options) Select this check box to have a thin vertical line at the right margin of the editor displayed. Refer to the description of the General page of the Code Style settings.
From: http://www.jetbrains.com/phpstorm/webhelp/editor-appearance.html
Right Margin (columns) In this text box, specify the number of columns to be used to display pages in the editor.
Wrap when typing reaches right margin Select this check box to ensure that edited text always fits in the specified right margin.
So you can probably disable it if you want...

Making Wing IDE wrap lines on one file

I have one file in my project, (the readme file,) which I would like Wing IDE to display with wrapped lines. Is it possible?
Yes this is possible. Here's how you would do this:
Edit > Preferences > Editor > Line Wrapping
In this window, make sure that the "Wrap Long Lines" box is checked. You can then edit settings in the same window like at what position the line show wrap, etc.
Source -> Justify text will reflow one paragraph of text. Unfortuneatly you have to invoke it one paragraph at a time if you want the whole file reformatted.
I realize you may actually be looking for a viewing transformation that does not modify the file.
It seems like it's currently not possible.