Does it possible to mark search results/breakpoints/bookmarks in scrollbar of scintilla control? Like it done in Google Chrome or JetBrains IDEs.
Yes it is possible.
First you have to know which lines to mark. After your search (using scintilla search engine or your own) you can loop call SCI_MARKERADD and pass those lines as arguments + the marker type you want to use.
More info:
http://www.scintilla.org/ScintillaDoc.html#SCI_MARKERADD
Related
I've been missing this feature since starting to work with OpenEdge, and I am left wondering if the is any way to enable this.
I've checked the OpenEdge editor properties in Eclipse but was unable to find the option to toggle this. Is there a plugin that can enable it? Maybe a hidden way to do that without the need of a plugin? Any help is appreciated.
Mark occurrences feature example
If you search using Ctrl+H (or Search -> Search) in the OpenEdge Editor (Eclipse based) you get marked occurences in the editor as well as a list of all search hits in the Search tab.
In this example I've searched for "RETURNS CHARACTER"
In the old AppBuilder editor you are out of luck.
I was watching this video on Background-Size and I saw that the autocomplete for this man's VS Code is more descriptive than mine. When he types the border property it auto completes with parameters already filled in. However my VS Code for CSS does not do the same. It just autocompletes the property border without the parameters. How do I configure my VS Code to be like the video. Video with configured VS Code Skip to 1:13 to see what I am talking about.
He is using an Emmet abbreviation by typing bd and then pressing tab, he didn't pick it from the suggestions! So you have that already, no extensions required. Check out the cheat sheet here and vscode configurations here.
It seems that using '?' command is the only way.But this is too much trouble, need to run the function? in another cell.
I've tried shift+tab, but it does not work for me.
Shift + TAB displays popup with signature, docstring and type.
One can also keep open Inspector where documentation will be displayed while typing.
When I'm writing Docstrings in Python3, I'm ending all of my sentences with periods and I see an autocomplete suggestion like this:
In this case it wants to replace the string "wager." with "wagerself."
If I press Enter or Tab the string replaces. I've messed around with all the logical buttons (Including adding an extra space which doesn't work), and nothing will allow me on my merry way to a newline.
This problem occurs both with and without the autocomplete-python package installed.
I do want to use auto-complete when I type a dot after an object, just not in the comments.
Is there a way to either:
Dismiss the autocomplete suggestion as they come up.
-- or --
Change the autocomplete to be aware of the context, i.e. not autocomplete dots when I'm in a string/comment.
From experimenting with different key combos, ctrl + enter will ignore the suggestion and allow you to go to the next line without altering what you've typed.
I haven't found any documentation around this, so I'm not sure if there's a similar key combo for tab or not. I couldn't find anything myself beyond alt + tabing to lose focus, which causes the suggestion to go away, then alt + tabing back to hit tab, which obviously isn't ideal.
I'm using Atom 1.44.0 on Windows and have found that shift + enter works to dismiss an autocomplete suggestion. No luck with tab on this platform though.
I use atom extensively, and have found that a quick left-right cursor move will leave the typed text in place and will NOT reactivate the suggestion list, unless more characters are typed. You can then type and move on to the next line.
I was actually searching myself for a way to exclude "then" from the autocomplete action, because I have text in other locations that has it as a commented "Then". I was hoping to find a way to exclude that word completely, but thought to share my work-around for that little bit, instead.
I am having the same problem where my text is getting replaced with cached words where if I wanted to type “manage” but if I have used “management “ before, I will get the text what I don’t want if I press enter. I went into preferences and followed the same steps mentioned in the below article and once the preferences are changed, I don’t see the word suggestions anymore. I felt so relieved.
https://elearning.wsldp.com/pcmagazine/disable-code-hints-atom-editor/
I like the syntax highlight style scheme used for R scripts in github and I would like to get it to my gedit editor. Where could I get it?
The easiest way to get R syntax highlighting in Gedit is the RGedit add-on: http://sourceforge.net/projects/rgedit/
RGedit also allows executing R code from within Gedit, which is very handy.
Here's a screenshot of how I have my RGedit set up. I use a custom color pallet but you could alter the color scheme to look more like Github:
The lower pane is the R session (black on white) and the upper pane is the text editor (color on black).
gedit doesn't seem to have much in "syntax highlighting plugins":
Smart Highlighting gedit
QuickHighlightMode
Both doesn't support easily any language definition.
Maybe another editor (like bluefish for instance) would be more appropriate.
It seems that both existing answers are outdated, although the RGedit plugin JD Long mentioned still works. It looks like the last update was from almost a year ago, and there might be some problems with the latest version of gedit; however, I installed the plugin and it seemed to work without following the instructions in the forum (I'm running on Xubuntu 14.04).
However, for syntax highlighting (like the OP requested) - you don't have to do anything special. Today Gedit comes with syntax highlighting for many languages out-of-the-box, and one of them is R. If it doesn't detect R automatically (based on mime type or extension) then you can manually set the syntax highlighting scheme by clicking on the file type on the bottom right of the screen, where it says plain text or by choosing View -> Highlight Mode from the menu.