SAP Web IDE: Better multiple Cursors - sap-web-ide

In SAP Web IDE it offers a manual way of using multiple cursors. I'm used to using this via Ctrl+D and I find this manual way of doing it frustrating.
Is there any way to add the Ctrl+D way via a plugin?

I was also looking for a way to have the Ctrl + D functionality in the SAP Web IDE (Full-Stack). Now we discovered that there is a similar functionality implemented where you can have a cursor at each occurrence of the searched term.
select the string you want to search for
press Ctrl + F
press Alt + Enter to get a cursor at each occurrence of the searched string
Of course it´s a bit more complicated than just pressing Ctrl + D in other editors like Atom, VS Code, ...
I would also appreciate a way to only get one more cursor per shortcut-press and not a cursor for each occurrence in the whole file.
Another thing which helped me was the Shift + Alt shortcut to get a cursor in each line underneath each other:
place the cursor in the line where you want to have the first cursor
press Shift + Alt and keep it pressed
click at the line where you want to have your last cursor and release Shift + Alt
I hope this helps.

Related

how to add tab character into test string section of regex101.com

I am using regex101.com to learn regex.
There will be cases where I want to insert a Tab character within the TEST STRING field of regex101.com.
However, when I have the TEST STRING field selected and press the tab key on my keyboard, it doesn't enter the tab character within the TEST STRING field, but rather it just moves me on to the next selectable feature within the browser page.
I note I have done a bit of googling but so far haven't been able to find the answer to how to add a tab character within the TEST STRING field. Although I know for sure it is possible to do this given that I have seen a few videos where the presenter successfully adds a tab character into the field.
I note that I am using Windows 10 and my browser is Google Chrome.
Would greatly appreciate if anyone could provide an answer to this.
Appears regex101 can enable the tab key to be translated by the editors
instead of being pass-through to the system where it changes focus to the
next control in the tab order.
Just uncheck the box in Settings .
Apparently preference gets saved in your browser session cookies.
Typing a Tab into a text editor and copy-pasting (Ctrl + c / Ctrl + v) it into the browser form is an easy solution. Just make sure your editor is not configured to auto-replace tabs with spaces.
Another way would be using a keyboard combination to enter the ASCII or Unicode character code (see this superuser post). For Windows, that should be Alt+ 0 + 9 (Note: apparently the numbers need to be entered on the numpad).
Finally, depending on the browser you use, there might be browser extensions that facilitate what you want. There used to be one called Tabinta for Firefox and one for Chrome called chrome-textarea-formatter, but I believe neither of them is still maintained.

Visual Studio go to bookmark only inside current file

Is it possible to go to the next/prev bookmark only inside the current file? I'm using VS 2010 and I find it extremly annoying that it jumps always across all files when I want to navigate inside the current file only.
Yes. Go to "customize" (right click on the toolbox area, choose customize) ->commands->keyboard, choose edit.NextBookmarkInDocument and associate it with a shortcut.
In addition, you can add it as a button in the text editor toolbar. Go to to text editor toolbar, press the little mark on the bottom-right,and choose the appropriate button to add.
Set bookmarks to stay in one file in Visual Studio 2019
In the Search box at the very top menu, put in ‘customize’ and hit Enter’.
A complex box comes up, but I simply clicked on a button at the bottom labelled ‘Keyboard’, which is where keyboard shortcuts can be set up.
That brings up another huge box. In the left hand pane is Environment and under that is Keyboard. I guess that the way I went in is why this was expanded and already selected, so there must be other ways to get to the same place.
In a right hand pane is now a huge list of commands that can have shortcuts attached!
The ones to scroll to (enlarge the box or the scroll bar is a joke. A slight move scrolls dozens of lines!) are Edit.NextBookmarkInDocument and Edit.PreviousBookmarkInDocument. (similar commands without ‘inDocument on the end are what f2/ shift f2 do by default and jumps between files rather than staying in the same document.)
When you select a command you can then just click on the field labelled ‘Press shortcut keys’ and then press the keys you want to be the shortcut for that command.
I assigned Edit.NextBookmarkInDocument to f2, which then replaces the old f2 that jumps from file to file, and shift f2 for Edit.PreviousBookmarkInDocument. You have to press the ‘Assign’ button to make VS remember the change. After this, bookmark jumps stay in the same file. I guess you could choose any shortcut you fancy, and it does at least show you if that shortcut is assigned and what it is assigned to.
There are some features which I have not explored, like when I use f2 it shows it is assigned to ‘Rename’ but it seems to not effect that function at all when you reassign and just takes it away from the jump between files command version. Maybe someone would like to delve deeper, but what I did worked without any side effects and renames outside of VS still worked with f2 so I have no idea what it was going on about.

Underlining first letter of Label C++ (Underline doesn't show)

Problem:
I wish to underline the first letter of certain static text controls (such as Login and Password). The letters become underlined when the ALT key is pressed.
What I have tried:
In C#, I was able to acheive this by using an ampersand. Such as "&Log in" or "&Password". I am trying to find a similar method in C++. The below picture shows an example in C#:
I am using MFC/C++ in Visual Studio 2010.
Edit:
Added information about the ALT key. Here is an example of what I am trying in Visual Studio 2010's properties box. I am adding an ampersand to the front of the "Caption"'s text.
When I run my program in the debugger, the first letter is not underlined (until ALT is pressed):
There's a fundamental difference between a menu and a static control.
To do this in a menu, you do it just like in C#. Here's a screen shot of editing a menu in a C++ project:
...and here's the result:
For a static control, you have to clear the SS_NOPREFIX style for the control to get the same behavior. However, it's been my observation that under some circumstances the underline doesn't show (but I haven't ever pinned down the precise circumstances under which the underline didn't show--I think when it happened, I fixed it by changing the font, but I don't remember for sure).
After help from the SO community, it seems that using the ampersand (&) symbol before the desired underlined letter is the correct way. There was a setting on my personal machine that would keep the underlined letters hidden until the ALT key was pressed.
According to the MSDN:
A user often has to press ALT in order to see access key designations. To ensure that you address them throughout the development process, set your computer to persistently display access keys.
In Windows 8: Open Control Panel -> Ease of Access Center -> Make the Keyboard easier to use.
At the bottom of the screen, check "Underline keyboard shortcuts and access keys".

Webstorm Shortcut to create new file from src

What is the shortcut to create a file when the cursor is on the beginning of the name in the src.
I did it by accident earlier today and can't remember the key combo. Searched all over the web with no luck.
Universal shortcut: Alt + Enter when having cursor standing on problematic place (or click on light bulb icon) and choose appropriate action from appeared menu:

Unmarking items in Visual C++ 6.0

Whats the quickest way to unmark all the marked items in VC++ 6.0 Ver?
(I just searched for a string, clicked 'Mark All' and then wherever the item appeared, a blue indicator is seen at the left. does anyone know reverting it back?)
I tried project->settings, but in vain.
According to this DaniWeb question Ctrl + Shift +F2 should clear them all.
Press Ctrl+F2 to mark/unmark a line of text. Press F2 to skip between marked positions within each source-file. The list of current bookmarks can be displayed by the Edit -> Bookmarks dialog or by pressing ALT+F2. You can clear all bookmarks there.
Clear all bookmarks - Ctrl+K, Ctrl+L
Ctrl+Shift+F2 will clear all bookmarks.