Disable categorization in "method / event / enum dropdown browser" - vb.net

.
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.

Related

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.

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.

Enabling tabs in xcode? Or lessening the pain of not having them?

I am currently using xcode and I find it's lack of tabs quite disturbing.
I currently use command-shift-d to search through all the files, or ctrl-1 to open the history of files that were recently opened.
It works but I find it less effective than just tabbing through the few files i am currently working on.
Is there any way, third party or not, to enable some sort of tabbed organization?
If not, is there any other way to quickly navigate through a subset of files?
XCode 4 now supports tabs. You can enable by selecting "View / Show Tab Bar" menu.
Not really, but one alternative is View > Show Favorites Bar and drag five or six frequently-used source files into it. Not as flexible as tabs but satisfies your request for "quickly navigate through a subset of files".
The traditional way is to use the detail view. Get the files you want in the Detail view by one of these means:
Put them all in the same group, then select the group
Enter a filter expression in the Search Bubble that narrows the items shown
Define a Smartgroup that includes just the files you want
Get a list of the files as a Find in Project result, then select that item in Find Results
Then you can use the Detail View as your list of interesting files and navigate through it quickly with the up and down arrows.
First of all, you can use Textmate (which I believe has Xcode integration). Otherwise:
Window (Menu) -> Organizer (ctrl-command-o)
At the bottom of that window, if you don't have two panes, click the square to the right of the gear. Now drag code files of interest to the left, grey pane--a single click or arrow up/down will open the file in the editor pane.
If you do open a bunch of windows, as vog suggested, you'll need to command-~ through them--not alt-tab.
Cheers.
The Xcode source code editor allows you to choose the file from a list. It's two clicks instead of one (as it would be with tabbing), but it's better than nothing.
In addition, you can simply Alt-Tab through your open source code windows. This is not slower than tabbing, and has the same effect since the source code windows are usually placed exactly one in front of another.
You'll definitely want to read through this. (XCode Tips and Tricks you wish you know about two years ago - SO)
You can navigate between files using "Recent Files"
Write simple applescript:
tell application "Xcode"
tell application "System Events"
keystroke "1" using {control down} -- open "Related Files"
key code 125 -- choose "Recent Files" ("keystroke down" doesn't work)
keystroke return -- enter to "Recent Files"
key code 125 -- choose previous file
end tell
end tell
And bind it to some shortcut using for example FastScripts(free up to 10 bindings)
I have this script on "Control" + "`". (XCode 4)
Hope this will help
You may also try an Xcode plugin I've just released - it's called Code Pilot and solves a lot of issues of Xcode's navigation, making it more TextMate/Eclipse-like.
Check it out here: http://macoscope.net/en/mac/codepilot/
I hope this helps!
It is simple with XCode 7.2
GoTo View>>Show Tab Bar
This will show the tab bar.
RightClick on the New Tab and click -->"NEW TAB"
Then We can see all the files in tabs.

Xcode question: Quickly jump to a particular selector/class/symbol?

What is the quickest way to jump to a particular symbol/selector/class in Xcode? (I'm looking for keyboard shortcuts preferably).
Right now, I know two ways of doing this:
“Open Quickly” > Click on the Symbols dropdown menu at the top of the editor > Select the selector to jump to it.
Click on “Project Symbols” in the “Groups and Files” section on the left sidebar, and type in a name in the Search text field in the top right of the XCode window.
Is there a quicker way of doing this? (If I could even assign a shortcut to jump to the “Project Symbols”, that would suffice for me. Alternatively, if I can find a keyboard shortcut to jump to the symbol dropdown above an editor that would do it to).
For experienced Xcode programmers, what do you use to jump to a symbol?
In Xcode 3.2, the "Open Quickly" command (Shift-Control-D) lets you type in selectors and class names as well as file names. This would at least get you close to what you wanted.
Your idea about using the "Symbols" drop-down also works. You can use the keystroke Control-2 to bring up the Symbols drop-down menu, and then use the arrow keys, or start typing the name of the method that you want to reach.
Edit: In Xcode 4, the "Symbols" drop-down appears when pressing Control-6. You can change this in the Xcode settings by changing the key binding for "Standart Editor > Show Document Items".
If you're looking at the symbol in a source file and want to jump to its definition, ⌘-click it.
(command + double click) on your symbol/selector/class in any place of your implementation to jump to them
(option + double click) on framework classes/selectors to jump to their reference in help->documentation
One (arguably crude) way to do it seems to be as follows:
This is based on the fact that the Search field at the top right of the Xcode window seems to change behavior depending on what is selected in the Groups & Files sidebar.
Select “Project Symbols” in the “Groups & Files” sidebar
Press ⌥⌘F (That is Command+Option+F) to jump to the Search field
Enter the symbol to jump to, and an outline will quickly show up
(this will remain in effect until you click on something else in the Groups & Files sidebar)