
In case you want to convert a Visual Basic Function to a Sub, there's the corresponding context action as well. If you need to adjust member visibility, ReSharper provides a context action that allows doing this quickly.

It wraps the string literal with the String.Format method call, adds a placeholder at the current caret position and lets you specify the corresponding parameter. If you need to add some dynamic data to a string literal, use this context action.

Here are some examples of context actions for Visual Basic: Add new format item In this case, the action indicator corresponding to the action with the highest priority is shown, and all other actions only appear when you expand the action list by clicking on the action indicator or pressing Alt+Enter Context actions have the lowest priority, therefore, they often appear at the bottom of the action list. Sometimes however, ReSharper provides several contextually available features for the current caret position. If necessary, you can also disable some of the actions using this page.Īs soon as a context action becomes available for the current caret position, ReSharper displays the corresponding action indicator to the left of the caret. You can find the full list of these actions in the Code Editing | Visual Basic | Context actions page of ReSharper Options. ReSharper provides a set of context actions that target Visual Basic code. Import Symbol Completion provides completion items for types and extension methods that are not visible through import directives in current context. Look at the example below, only those items that have string type are displayed in the list. Smart completion filters items in code completion list according to the type expected in current context. If you use anonymous types, ReSharper takes their properties into account and displays them in completion list along with other available items. Enum members are also included in basic completion list. Three Code Completion features are available in Visual Basic: Automatic and basic completion Basic completionīasic completion suggests namespaces, types, methods, fields, properties, and so on. For more information, see Code completion (IntelliSense). You can establish a custom font and color scheme, for more information, see Configure fonts and colors.ĭefault syntax highlighting: Code completionĬode Completion features help you write code faster by providing a set of items to complete based on surrounding context. In this topic, you can find some examples of using coding assistance features in Visual Basic. You can find the detailed information on these features in the corresponding topics of the Coding assistance section.

All ReSharper's coding assistance features available in C# are also supported in Visual Basic.
