When I click on the line numbers in the margin, it highlights the entire line and moves the cursor to the beginning of the following line (presumably so that you can quickly copy that line to the clipboard).
Is there any way to disable this behaviour and have the cursor simply jump to the beginning of the line that was clicked?
On OS X, hold down ⌥ (Option key, or Alt) while clicking on the margin. On Windows and presumably Linux, you can click using the middle mouse button.
If you want to make this the default behavior for mouse button 1 (the left button), create a new file with JSON syntax and the following contents:
[
{
"button": "button1",
"press_command": "drag_select",
"press_args": {"by": "columns"}
}
]
Save it in your Packages/User directory as Default (your_OS).sublime-mousemap, where your_OS is one of OSX, Windows, or Linux. You can find the Packages directory by clicking on Preferences -> Browse Packages....
Warning!
This will make your left mouse button act like the center mouse button - you won't be able to double-click to select words, and click-drag events will select columns instead of lines. There is no way to isolate this behavior to just the margin, unfortunately.
Related
When I write code, and press Enter, then I insert a new blank line, with normal indents, as it should be.
However, if I click the cursor to another location, and then click back to this line, it will be placed at the beginning of the line.
How to fix it?
I tried to fix it in the ReSharper settings, but did not find it.
Pressing enter after the line you are typing on leaves the cursor at the same indentation level (the new line is blank until you type something and then it will pad it with spaces). If you do not type anything and move the cursor away from that line and then back again it should set the cursor to either the home column or the last indented column if you mouse click beyond that column (further to the right). This only works with mouse clicking, using the cursor keys will only set you to the home position on the new line.
You could always enable virtual space then you can place your cursor where ever you want.
Instead of Tab, if you use space, it stays as it should be but it is not a good practice.
How can I create a tab panel in labview with vertical tabs? I mean I know how to create a tab panel and when I set the location of the tabs to left, they are were I want them to be. But they are rotated and I want each name to be displayed horizontally:
I can suggest one option, which I am not sure is the best one.
You select tab location to left, tab size to fixed, hide tab names and write your tab names somewhere in FP and drag them where you want on your tab.
It would look like this.
Short Answer: LabVIEW does not allow horizonally align text on left aligned tabs for tab controls however...
Change the Tab Layout to an image instead of text and import your text that way (as an image). This way the text will pop-in and pop-out when the page is selected and the image will be part of the tab control instead of some floating object.
Right click the tab control and go to Advanced>>Tab Layout>>Image. You'll need to use Ctrl-C in from an image editing application (MSpaint works fine for this) in order to import the image from the clipboard to the tab control
I want to do multiple select and edit within a specified selection in Sublime Text 2. The following screenshot illustrates the situation:
When I select "element" and press Alt + F3 (in Windows) I can simultaneously edit all instances of element. However what I would like to do is to be able to edit all instances of element only within container-a while leaving element within container-b untouched. I tried first selecting a specific area but then as soon as I attempt to select "element" my first selection disappears.
Is this possible to achieve in Sublime Text 2?
You can simply use the Find in Selection option in the Find panel. Select the text that you want to search in:
then hit CtrlF to open the Find panel. Type in the text you want to find (such as element), then, in the group of buttons to the left of the text area, click the second button from the right - In Selection (highlighted in red):
Finally, either hit AltEnter or click Find All to select all the instances of element in the selected area:
and you're good to go.
Press Ctrl+D to select one more element and then one more again until you have selected all elements in container-a.
(Sorry my approach is very similar, but just a tiny thing to make it very slightly faster.)
Before you start, have the setting "auto_find_in_selection" to true, (This is probably only for SublimeText 3). This will have the "In Selection" button automatically done in most cases.
(if you are already under the word) use Ctrl+E (command slurp_find_string). This causes the word to be used in find box.
select the region you want (Ctrl+Shift+J should work nicely in your case)
Hit Ctrl+F, you will find all settings are right ("In Selection" on, your word in box already)
Just hit Alt+Enter and you are there.
For Mac, select what you want and then you can use --> cmd+ctrl+g
When I add any element (control like text box, label etc) to my form, it has default style as:
Font: Calibri (Detail)
Font Size: 11
Fore Color: Text 2, Lighter 40%
How is it possible to change that, I need MS Sans Serif, 8, Black for default.
Thanks!
In Access 2018 (though sure to change in the future) this is done by:
Select the object whose values you want to make default
In the "Design" tab, to the right of where you select a new control to add (text boxes, option buttons, ect.), click the bottom "carrot" style arrow to open a sub menu
Click "Set Control Defaults"
Don't know what version of Access you are using, but I'm sure the newer versions have similar features. (I use 2003 because I hate having everything showing up in one scroll bar)
First Setup a Form, text box, and label to the settings you would like and save. (Background Colors as well).
Second Click AutoFormat button> Customize > Set Standard from the form and click OK.
Should do the trick. AutoFormat Button looks like a Wand over piece of paper.
Open the form in design view.
On the design tab of the ribbon, in the Controls group, click on the Text Box button, but - this is important - do not click on the form yet.
Activate the Property sheet. All properties you set now, will become the default for new text boxes on this form.
Activate the Format tab of the Property Sheet.
Scroll down.
Make sure that the Auto Label property is set to Yes (this is the default setting).
Change the LabelX property to 0.
Change the LabelY property to (for example) 0.75 cm or 0.3".
You can now click on the form to create a text box.
Is there a way I can use the middle click or maybe (Ctrl+Alt+Up) to a particular column across all lines in a long file? Currently, I am middle-clicking and then dragging this to the end of the screen and waiting for it to select all lines.
Specifically, for long files, how would I select one particular column across the entire file?
This should do it:
Ctrl+A - select all.
Ctrl+Shift+L - split selection into lines.
Then move all cursors with left/right, select with Shift+left/right. Move all cursors to start of line with Home.
OS X
You can click the following and drag to create a selection of one or more columns of characters:
Left mouse button + option
Middle mouse button
To add to an existing selection, hold command while doing the above.
To subtract from an existing selection, hold command + shift while doing the above
Windows
You can click the following and drag to create a selection of one or more columns of characters:
Right Mouse Button + shift
Middle Mouse Button
To add to an existing selection, hold Ctrl while doing the above.
To subtract from an existing selection, hold Alt while doing the above.
In Mac OS X, replace Ctrl with CMD key. So it'll be,
CMD+A - select all.
CMD+Shift+L - split selection into lines.
Then move all cursors with left/right, select with Shift+left/right. Move all cursors to start of line with Home.