In Atlassian Confluence, what is the keyboard shortcut to select the "Select language" menu from a code block? - keyboard-shortcuts

I can enter a code block by typing three back-ticks (```) (See also, Shortcut for "code block" macro in Confluence editor).
When I do so, a "Select language" menu pops up, allowing one to add syntax highlighting according to the language of the code block (GraphQL, Rust, etc).
But so far I have only been able to access it by using a mouse. Does anyone know the keyboard shortcut required to make the jump?

Related

Keyboard shortcut to pass current selection to a method in PhpStorm

I find it very convenient to see the option of selecting a piece of code and then press a keyboard shortcut to pass it to a method. For example, consider the following expression:
$this->log("Inside validateRequest. post: " . $this->getRequest()->getPost());
I want to select the following part and then press a keyboard shortcut so the IDE would ask me for a method name. I enter the method name and the whole selection is passed to the method:
$this->getRequest()->getPost()
Then I would have the following result:
$this->log("Inside validateRequest. post: " . print_r($this->getRequest()->getPost(), true));
I was almost certain PHPStorm or Android Studio (or other JetBrains IDEs) had this option, but I cannot find any shortcut for this purpose in the available shortcuts e.g. in the Code menu.

IntelliJ IDE (IDEA, PhpStorm, WebStorm): Shortcut for focusing Filter field in e.g. Change Log tool window

Is there a shortcut for focusing the Filter box in tool windows, specifically the Change Log?
See the attached screenshot to know which field I'm talking about. I searched the net and key map, but found nothing like that.
I have confirmed at Jetbrains that unfortunately it's not possible yet: http://devnet.jetbrains.com/message/5520523#5520523
Just start typing with the focus inside the tool window. IDEA invokes the search automatically. To select the item, press Enter. To cancel, press Esc.
This feature is called Tool Window Speed Search.

Visual Studio 2013 VB intellisense

Apologies upfront if this is a silly question, but it's annoying me to no end and I can't figure it out.
I'm using Visual Studio 2013 Professional, and I usually code in C# where when using the Intellisense, when I press Enter to select a method or something it adds my selection and I can continue typing on the same line.
But at the moment I'm working on a project which is in VB.NET, and when I use the Intellisense in the same way it puts my cursor in the next line, i.e. I press Enter to select whatever, it adds my selection and starts a new line, so I have to press the Backspace to go back to the previous line. It's so annoying!
Is there a way to change this behaviour so the cursor doesn't go to the next line? I've looked at the settings available in Tools > Options but can't figure it out, and searching Google for anything similar hasn't been successful.
Found it here (paragraph List Members)
You have toggled to suggestion mode instead of completion mode.
You can also change to suggestion mode, in which only the text you type is inserted into the code. For example, if you enter an identifier that is not in the list and press TAB, in completion mode the entry would replace the typed identifier. To toggle between completion mode and suggestion mode, press CTRL+ALT+SPACEBAR or click Edit/IntelliSense/Toggle Completion Mode.
So, either use TAB/SPACEBAR (as I said in the comment) or press CTRL+ALT+SPACEBAR to switch back to completion mode.
EDIT: I've found out that whenever you type Stri (String will show highlighted in the list now) and you press . (dot) it will autocomplete and stay at the same line.
I think your way of doing this in C# isn't possible in Visual Basic.
I had the same problem and discovered that Auto list members was not enabled on my machine. It's under Tools > Options > Text Editor > Basic > General. This gave me the intellisense I was looking for.
Simple thing which can be used when you face this kind of issue is to press
tab key instead of Enter key when the IntelliSense provided me prediction list.

Choose a snippet from the AutoComplete window in Xamarin Studio

I am running Xamarin Studio 4.2.3 on Windows. I have it set to show the autocomplete window automatically when typing... so for instance, when I type cw the following appears:
The editor will allow me to choose CswWriter from the list and press either TAB or ENTER to replace the cw with CswWriter.
However... it will not allow me to choose the cw snippet from the dropdown. I also dug through the Key Bindings dialog looking for the ability to bind something like "Expand Snippet" to a key and did not see it.
Anyone know what's going on? How do I expand the snippet?
I CAN bind a key to "Insert Template...", which pops up another autocomplete-like window with only code snippets in it... but why put them in the normal autocomplete if it won't actually let you choose them?
Xamarin Studio has similar behaviour to Visual Studio. To expand the snippet you need to press tab when the completion window is closed.
When you type in cw, the auto-completion window is displayed, pressing tab will then complete the text, in this case cw, which you have already written. Now if you press tab again the code snippet will be expanded.
The first tab key press in your example is a bit confusing since you have already typed in the full text, however for longer code snippet names (e.g. 'prop' and you have typed in just 'pr'), it is less confusing since you will complete the text for the code snippet with the initial tab key press, then pressing tab again will expand it.
Visual Studio displays the message "Press TAB twice to insert the snippet" in the code completion window to make it more obvious what you need to do.

Changing keyboard shortcut of "Available databases" in SQL Management Studio

Please read my question before posting general help links.
I can't change or remove the shortcut CTRL+U from "Available databases" in the SQL Editor toolbar. (I want CTRL+U to unindent the selection in the text editor.)
What I tried:
I assigned CTRL+U to the unindentation command, but still CTRL+U just moves the focus to the "Available databases" combo box. (I checked and I set up my shortcut correctly, actually I set up CTRL+I for indent and it works fine.)
I tried to find CTRL+U in Tools/Options/Environment/Keyboard with all places, only my definition shows up.
I tried to find "Available databases" in Tools/Options/Environment/Keyboard with "...containing" set to "database" (checked all entries) and "available" (again, checked all entries).
I went to tool bar customization, selected the component, but no keyboard shortcut option/menu/button there. The "Keyboard" button only opens Tools/Options/Environment/Keyboard with nothing set.
I actually do use "Available databases" every once in a while, so I rather not delete it from the tool bar.
Anyone have any feasible options apart from the above?
You can "debug" and analyse your shortcut assignments with SSMSBoost add-in for SSMS.
(I am developer of it). It has "Dump Shortcuts" function which will allow you to get quick overview which functions Ctrl-U is assigned to and you can also use it to re-define shortcuts.