Choose a snippet from the AutoComplete window in Xamarin Studio - 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.

Related

Navigate (switch) between 'Find' and 'code preview' in IntelliJ IDEA

Hi I have to make a lot of searches in InteliJ and I want navigate between findings of searched text and code preview of specific file.
I tried to search it on web, and also combination of shortcuts like tab, ctrl+tab and many more but nothing work.. Do you know how to switch between those two windows?
right now I have to click it with mouse to focus on one of the windows.
The code preview window is intended to be used as exactly that - a preview, not a UI to be used for complex editing operations. If you need to do anything with the search results, use the "Open in Find Window" button to open the toolwindow with the results. After that, you can use for example Ctrl+Alt+Up/Down to navigate between the occurrences, or other keyboard shortcut to switch between the toolwindow and the editor.

Disable categorization in "method / event / enum dropdown browser"

.
In VB6, the dropdown in the IDE shown above wasn't categorized.
I could easily browse "ucBoardGrid"'s events and properties as they were all shown in the same dropdown menu.
While VS2017 tries to organize things for me, I feel that it's mostly much more time-taking to browse where I want to:
First I need to select the "main category" in the left dropdown menu, then I can view the methods / events / properties in the right dropdown menu.
Is there a way to disable this categorization? I would like everything to be shown in a single dropdown list right away.
I fondly remember the old VB6 menu's just as you've explained.
I would like everything to be shown in a single dropdown list right away.
I doubt you can remove the categorization, however I have something far more amazing. These days I find myself using Ctrl+T.
The new Go to All window in Visual Studio 2017 lets you navigate directly to any file, type, member, line or symbol by typing a search query:
The main difference from the Navigate To window (existed since Visual Studio 2010) is that now you can easily limit search results to files, types, members or symbols clicking on the corresponding toolbar button. Alternatively, you can type the special character and space before the search query:
Works for Files (f), Types (t), Members (m), Symbols (#) and Lines (:), e.g. f stac for file paths containing stac
Edit: Apart from Ctrl+T, I typically use F12 to goto definition. Then I use Ctrl+ minus key to go back, and back, F12 forward, and back, again. It's the fastest I've found.
I'm also a fan while debugging to pull up Ctrl+Alt+c the call stack, up/down arrow keys while focus is on CallStack window.
F12 & Ctrl+- is the key, anything else Ctrl+T.

How do I show the Ln and Col numbers in the Visual Basic editor?

Most IDEs have a display that tells the user what line (Ln) and column (Col) position the cursor is currently located at. Is this function available in the Visual Basic Editor?
The Visual Basic editor does have this functionality.
The Ln and Col display is the last widget on the 'Standard' toolbar. You can right click on the menu bar or any toolbar and check the box next to 'Standard'.
If the toolbar is enabled, but you cannot see the Ln/Col display then the tool bar placement has caused the VBE to truncate the toolbar; try moving your toolbars around.
As already noted that basic functionality is part of the [Standard] toolbar.
With Rubberduck (an actively maintained, open-source VBE add-in project I manage), you get much more than that:
The [Rubberduck] toolbar dwarfs the VBE's line/column display, which only shows the start of the current selection. Rubberduck's context-sensitive toolbar displays:
L1C1-style current selection for single-character selections
L1C1-L1C1-style current selection for multiple-character selections
But also context-sensitive information about the selected declaration:
The name of the type library it's located in;
The fully-qualified module/member name;
The type of declaration (whether it's a function, a property, etc.);
The declared/return type, when applicable;
If the declaration has a docstring, a VB_Description attribute, or a Rubberduck #Description annotation, that description appears in the toolbar;
The number of references to that identifier across the entire project.
The latest/current pre-release/CI build apparently has a bug that prevents the L1C1 selection from being displayed. Will be fixed shortly. We're also working on fixing an annoying glitch that makes the reported number of references in the toolbar be off (clicking the button brings up the correct number of references in a Search Results toolwindow tab though). You may want to try v2.0.13 instead of the latest 2.1 prerelease/CI builds.

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.