Creating custom shortcut in Visio 2010 - visio

I would like to create a shortcut to horizontally and vertically align two shapes at once. Currently I have to select both items, click F8, choose the horizontal and vertical align, and click okay. Too slow. I can record a macro which basically just produces
Application.ActiveWindow.Selection.Align visHorzAlignCenter, visVertAlignMiddle, False
... which works great, but it only associates to the current document. Is there a way to make that shortcut work on any document I open or create?

I just created a new template based on the Detailed Network Diagram template but with the macro inserted into it. Seemed to be the only solution.

Related

Is there a shortcut to jump between views inside the explorer (e.g from Files to NPM Scripts or Timeline)

Couldn't find a command in the Keyboard Shortcuts list that focuses next or previous view in the explorer.
I know there are commands available to directly focus certain views (e.g npm.focus, timeline.focus, workbench.explorer.fileView.focus) but that would require binding a unique key for every view.
I need a shortcut to focus next/previous view in the list.
Switching Focus between Lists in the Sidebar
The TAB key is your best option.
You can't specify a specific list switch focus on, but you can cycle up & down the list.
To Toggle one Group "DOWN" use: TAB
To Toggle one Group "UP" use: SHIFT + TAB
To toggle through the groups list items, like open editors in the open-editors section, logged file-saves in the local history section, files in the file explorer, and/or the many other groups/sections available in the sidebar...
use the UP & DOWN Arrow Keys.
This is how all html lists work. VS Code is written in HTML FYI (you probably new that, but I threw it out there for clarity's sake). When interacting with a page that has been rendered from an HTML document, the TAB key will always switch focus between base elements, and will never cycle through an elements children. If you cycle through elements, such as an ordered list (<ol>), or an unordered list (<ul>), you can cycle through their list items (<li>) using the UP & DOWN Arrow Keys.
VS Code is no exception, in fact the entire editor can be cycled through using the keyboard. There are many disabilities that this functionality accommodates.
And FYI, your theme, if well developed, should highlight where focus is at. I find many developers will remove that highlighting to create the desired visual effect, but doing so is naive, as its there for a reason.

Displaying same document in editor twice with different text decorations

I'm currently developing a vscode extension that highlights snippets of text in specific colors. In order to do that I am creating a TextEditorDecorationType with the color and use setDecoration (TextEditor) on the active text editor.
Now I would like to compare two different colors on the same snippet with each other. Therefore I want to have the editor split in half showing the text document twice, on the left side with the old decoration and on the right side with the new decoration, similar to the git source control:
I figured if it is possible in the source control it should be possible anywhere.
Currently I open a second text editor with the same TextDocument and add the new TextEditorDecorationType to it, yet instead I would like to do it as shown above.
I cannot figure out how to split the editor like that displaying the same content twice.

Is there a shortcut to switch between panes in the Eclipse Compare view?

When I compare two versions of a source file (for example, from egit) in the Eclipse IDE, the Compare View is appeared. It has two panes containing two versions of a text and I can use keyboard to move cursor through the text on one of this panes (or even edit the text in it). Additionally, I can use special shortcuts to go to the next/previous difference and/or apply current change from/to the opposite pane. But, I didn't find a way to move the input focus to other pane.
Actually, I would like be able to do this in one case. Let's say, I compare two revisions of a source and I need to apply some changes while others are unneeded. To achieve this, I walk through changes using the Ctrl + , or . shortcuts and apply needed changes using, for example, the Ctrl + Shift + ,. It looks like all is OK, but if I reach a change which has no any text in the current pane, the applying shortcut does not work. For example, the cursor is on the left pane. I went to the next difference and this difference is concluded in that the text was, for example, added in this line. So, the Compare View will show this added text on the right pane, will highlight it with the special rectangle while this rectangle on the left pane will have zero height and the cursor will be placed under this zero-sized rectangle. I.e., outside of it. So, I think, exactly this thing causes that the current change applying does not work. When I click on the opposite pane, inside of this change and then use the change applying shortcut, it works fine. So, I would like to switch to other plane via shortcut, not using mouse.

VS Code find result panel

Is there any way to print search results (Ctrl+Shift+F) to horizontal panel?
Current vertical view is really inconvenient for me as I see only small part of line. Thanks
Update: see Visual studio code - how to copy search results? The new search editor makes seeing and copying the results much more user-friendly.
And now you can just drag the Search view into the Panel.
v1.21 has helped this problem. See Horizontal panel search
// Preview: controls if the search will be shown as a view in the
sidebar or as a panel in the panel area for more horizontal space.
Next release search in panel will have improved horizontal layout and
this will no longer be a preview.
"search.location": "panel",
I don't think you can print those results yet but at least the view is much improved. I don't think you meant actually "print" but nevertheless...
EDIT: Functionality added after the original answer:::
You can now right-click anywhere in the search results and select "Copy All" to get all the search results into the clipboard. That context menu has some other options as well.
As of May 2020, the accepted answer is marked by VSCode as a deprecated setting, and no longer works.
Instead, use the Command Palette to find for "Open New Search Editor" to get a full-screen search experience. This option is not bound to a keyboard shortcut by default, and you'll have to do that separately (would be nice to have it as the default, IMO).

Change checkbox(Activex control) in word 2007

In word 2007, I'm trying to use the default activex control as check box. I would like the color of text changed after some one check the box it.
I know how to get it done with VBA and checkbox formfield, but how can this be done with checkbox(active control)?
Shortly, is there any way I can retrieve the properties or other object information of ActiveX control check box?
I think this answer is too late for the questioner, how ever i am sending it for those who will face this problem later on.
IF you know how to change check box color in VBA then you can do it in word as well. All you have to do is to insert a check box that you can code your self. to do so.
Generate Developor's Tab in MS Word by clicking word button at the top left of MS WORD 07 Window; Select Advanced; Select Popular; then in the pan opened, check the check box that contains Developor's tab.
Now Click the Developer's Tab, Locate the Control Group and from their, click on legacy tools pull down menu.Click on more controls option at the lowest left of the legacy tools pull down menu. A new Window will open.
Scroll down to find the option Micrsoft Forms 2.0checkbox.
Click to select it, and you are done. You will receive a check box at the place where your cursor was blinking before you startated this process.
This Checkbox is very similar to the Check box from VB. Now if you know the VBA Codes and want to change the properties of check box like color etc. Look at the Control Group in Developer's Tab. Click Design Mode. Now DOUBLE CLICK THE CHECK BOX AND VB CODING FORM OPENS WHERE YOU CAN CODE.
In case you do not know how to code in VB, You can still make some useful changes in check box. Single click on the check box and Then Click Properties Immediately below the Design Mode in the devloper's Tab.
Here you can make changes in properties.