C++Builder: "highlight brace pair" option mess text selection - c++builder

C++Builder: Community Edition
In Options → Editor there is Highlight brace pair tick.
I really like this feature. But it makes hell to select something. Eg I got:
msg(p, "You cannot create or extend houses near other house doors.");
If I'm trying to select this text:
You cannot create or extend houses near other house doors.
It selects also quotes:
"You cannot create or extend houses near other house doors."
But I don't need to select quotes! No matter how I try to select it - with mouse or keyboard - it adds to selection quotes.. If I disable "Highlight brace pair" option - it works as it should.
Please help - is there some way to have this option and normal selection?

Darn, I got it.
To select text without quotes you need to select it from right to left. So if you select text from left to right - it includes quotes. If from right to left - nope :)

Related

Multiline find & replace in Xcode

I would like to replace
import Quick
import Nimble
with
import XCTest
Is it possible to do it in Xcode find and replace or I have to use Xcode regular expressions?
I have tried: import Quick\nimport Nimble but it doesn't work as expected
You can find for multiline text and replace it (cmd+opt+f) with new text. make sure to copy and paste multiline text as it is written on the Xcode file.
I don't know how you tried and failed. But I tried and it worked. Procedures as bellow:
First select and copy the lines you wanna replace.
Shift+Option+CMD+F to open Find navigator in Xcode, then CMD+V to paste the multiline text.
You can also choose a scope for search. Then input the new line.
THE FAST WAY:
You can simply copy both lines dragging with the mouse and the paste them on find textfield.
THE COOL LEEMUR'S WAY:
But also there is a great way to find expressions:
Press CMD + f
A find field will appear on the top of the editor.
At the right side of the find field there is a "+" sign
Press "+" will display a list of special characters
Its very useful, you can make something similar to regular expressions, mixing literal text with patterns
You can try to find the expression just in the current file writing it in the top find field. Or you can try to find the expression in the whole project using the Find Navigation tab on the left. As you will see the expression will appear there also.
Moreover if you want you can use an actual regular expression to find something if you press in the word "Contains" at the left of the "+" sign. It will show a list where you can select the option "Regular Expression"
If you want to find text select "Find" at the left of the editor. If you want to replace it, select "Replace" and a new field will appear below.
You can replace the text with another pattern, using some of the words that you used to find the text. If you double clic on "Word1" at the find field it will appear at the replace field.
In this example I'm changing the order of two words around MyText

Select and delete text in Cmder

I'd like to select the text and delete.
The behaviour of the Cmder is a little bit confusing.
If I select text leftward(e.g Shift+Left arrow, Shift+Home), I can delete the selected text, But when I select text using rightward(Shift+Right arrow, Shift+End), I can't delete.
Is this by design? or am I missing something?
Below is the description of those hotkeys
Shift+Left
Start text selection, ignored in Far, may be disabled on ‘Mark & Paste’ and ‘App distinct’ pages: Select(0,-1)
Shift + Right
Start text selection, ignored in Far, may be disabled on ‘Mark & Paste’ and ‘App distinct’ pages: Select(0,1)
There is a checkbox in Settings -> Mark/Copy -> Start selection with Shift+Arrow which you must set. Without it, it won't work.

Using GREP in TextWrangler to search all plaintext, or text outside angle brackets

I'm looking for a way to search any and all plaintext appearing outside of angle brackets, to replace it with blank so that only code appearing within angle brackets remains.
Does anyone know how to do this?
I assume the objective is to remove everything outside of the <tags> without affecting the <tags> themselves in an efficient way, inside TextWrangler. My solution is limited, in that it only matches text that is <tags>inside the tags<tags>. Which means that it will not remove any text that appears before or after the tags. i.e. Only text inside the tags gets removed. It is easy enough once this is done to select/delete the remaining text.
Assuming the file you want to edit is open.
Type: "command f" to open the find window.
Under "Find" enter (>.*?<)
Under "Replace" enter ><
I would post a picture, but I'm new so not allowed.
To see what will be replaced, click "Next".
To replace one occurrence at a time(slow), click "Replace & Find".
To replace all occurrences, click "Replace All"

How to change TAB to SPACEs and set their amount in Brackets editor?

I'm using Brackets editor http://brackets.io/ and I'd like to change behavior when I click TAB key it will put 4 SPACEs instead and also I'd like to change amount of spaces added.
Is it possible to do this adjustment?
In the lower right corner of the editor, you'll see text saying Spaces: 4 or the like.
You can click Spaces (or Tab) to toggle between those and click the number to change it.

How to edit a Custom Field in Jira v.5.0?

I try to edit one of my custom fields. Like in this instruction. But i have not screen "Viewing Custom Fields". Why? Any idea?
Are you logged in as an Administrator? If so, you should be able to select Administration in the upper right-hand corner and then click the 'Issues' tab and choose 'Fields'. This should take you to a list of all of your custom fields.

Resources