ASP.NET Support
Click a button to display features available in specific edition.
On-the-fly Error Highlighting (C# only)
ReSharper analyzes and highlights your ASP and C# code without having to compile it first. It not only highlights errors and warnings in C# code within ASP.NET files, but recognizes incorrect web controls properties and events, data sources, and content placeholders as well. File status indicator and quick navigation between errors are also at your disposal.
Quick-Fixes and Context Actions
ReSharper adds a variety of Quick-fixes for ASP.NET files and C# code.
Quick-fixes are represented by the red light bulb
that appears automatically to the left
of the code line containing the error when you position the caret on the error. For Visual Basic .NET code in
ASP.NET files, context actions provide some of the same functionality,
represented by the yellow light bulb
.
Auto-insertion of Namespace Import Directives
When a type name cannot be resolved because you forgot to issue the corresponding namespace import directive in the source code, a small popup appears to suggest one or more types to import. Simply press Alt + Enter, and the appropriate namespace import directive will be inserted automatically. Also, you will not lose your current caret position.
Code Completion
For ASP.NET files, ReSharper provides code completion for web control properties and events, data sources, content placeholders, and of course for C# and VB.NET code. All three types of code completion - basic, smart, and type - are available for ASP files as well.
Here is an example of Smart Completion for C# code. Click the language icon to see an appropriate screenshot for VB.NET code.
Advanced Coding Assistance
All ReSharper's advanced coding assistance features are available in ASP.NET files, including but not limited to:
Code Refactoring
All refactorings available are supported for ASP.NET files as well. Even if you refactor code within C# or VB.NET source files, related ASP.NET source code is updated accordingly. All refactorings also work within scriptlets. To learn more, see the complete list of refactorings.
Code Generation
In ASP.NET files, ReSharper helps you to quickly generate common code constructs such as constructors, properties, Equals() and GetHashCode() methods, override and implement methods, and generate "delegation" methods. It also allows you to create a new method, a variable, or even a type "from usage", so you can start using a symbol even before it was declared. See description of Code Generation features for more information.
Code Templates
All types of templates provided by ReSharper are available in ASP.NET files, including:
Also it is possible to configure and share templates as well as create custom templates.
Navigation and Search
ReSharper provides you with a powerful ASP code navigation and search features including:
File Structure view
With the File Structure window, you can see what controls, methods, and other structural elements of the currently opened ASP files as well as navigate directly to their declarations.
On-the-fly Error Highlighting
ReSharper analyzes and highlights your ASP and C# code without having to compile it first. It not only highlights errors and warnings in C# code within ASP.NET files, but recognizes incorrect web controls properties and events, data sources, and content placeholders as well. File status indicator and quick navigation between errors are also at your disposal.
Quick-Fixes
ReSharper adds a variety of Quick-fixes for ASP.NET files and C# code.
Quick-fixes are represented by the red light bulb
that appears automatically to the left
of the code line containing the error when you position the caret on the error.
Auto-insertion of Namespace Import Directives
When a type name cannot be resolved because you forgot to issue the corresponding using directive in the source code, a small popup appears to suggest one or more types to import. Simply press Alt + Enter, and the appropriate namespace using directive will be inserted automatically. Also, you will not lose your current caret position.
Code Completion
For ASP.NET files, ReSharper provides code completion for web control properties and events, data sources, content placeholders, and of course for C# and VB.NET code. All three types of code completion - basic, smart, and type - are available for ASP files as well.
Here is an example of Smart Completion for C# code. Click the language icon to see an appropriate screenshot for VB.NET code.
Advanced Coding Assistance
All ReSharper's advanced coding assistance features are available in ASP.NET files, including but not limited to:
Code Refactoring
All refactoring available for C# code are supported for ASP.NET files as well. Even if you refactor code within C# files, related ASP.NET source code is updated accordingly. All refactorings also work within scriptlets. To learn more, see the complete list of refactorings.
Before "introduce variable" refactoring
Refactoring results
Code Generation
In ASP.NET files, ReSharper helps you to quickly generate common code constructs such as constructors, properties, Equals() and GetHashCode() methods, override and implement methods, and generate "delegation" methods. It also allows you to create a new method, a variable, or even a type "from usage", so you can start using a symbol even before it was declared. See description of Code Generation features for more information.
Code Templates
All types of templates provided by ReSharper are available in ASP.NET files, including:
Also it is possible to configure and share templates as well as create custom templates.
Navigation and Search
ReSharper provides you with a powerful ASP code navigation and search features including:
- Search for a type or file by name
- Go to declaration from reference
- Find usages
- Quick navigation between usages
- Highlight usages
- Navigate through the recent files list
- Explore stack trace
All the navigation features in ASP.NET code files are supported in the same as way as in C# code.
File Structure view
With the File Structure window, you can see what controls, methods, and other structural elements of the currently opened ASP files as well as navigate directly to their declarations.
Context Actions
For Visual Basic .NET code in ASP.NET files, ReSharper provides context
actions to transform and craft code. Context actions are represented by the yellow light bulb
, positioned to the left of the current line
in the editor.
Auto-insertion of Namespace Import Directives
When a type name cannot be resolved because you forgot to issue the corresponding Import directive in the source code, a small popup appears to suggest one or more types to import. Simply press Alt + Enter, and the appropriate Import directive will be inserted automatically. Also, you will not lose your current caret position.
Code Completion
For ASP.NET files, ReSharper provides code completion for web control properties and events, data sources, content placeholders, and of course for C# and VB.NET code. All three types of code completion - basic, smart, and type - are available for ASP files as well.
Here is an example of Smart Completion for VB.NET code. Click the language icon to see an appropriate screenshot for C# code.
Advanced Coding Assistance
All ReSharper's advanced coding assistance features are available in ASP.NET files, including but not limited to:
Code Refactoring
All refactorings are supported for ASP.NET files as well. Even if you refactor code within Visual Basic .NET files, related ASP.NET source code is updated accordingly. All refactorings also work within scriptlets. To learn more, see the complete list of refactorings.
Before "introduce variable" refactoring
Refactoring results
Code Generation
In ASP.NET files, ReSharper helps you to quickly generate common code constructs such as constructors, properties, Equals() and GetHashCode() methods, override and implement methods, and generate "delegation" methods. It also allows you to create a new method, a variable, or even a type "from usage", so you can start using a symbol even before it was declared. See description of Code Generation features for more information.
Code Templates
All types of templates provided by ReSharper are available in ASP.NET files, including:
Also it is possible to configure and share templates as well as create custom templates.
Navigation and Search
ReSharper provides you with a powerful ASP code navigation and search features including:
- Search for a type or file by name
- Go to declaration from reference
- Find usages
- Quick navigation between usages
- Highlight usages
- Navigate through the recent files list
- Explore stack trace
All the navigation features in ASP.NET code files are supported in the same as way as in C# code.
File Structure view
With the File Structure window, you can see what controls, methods, and other structural elements of the currently opened ASP files as well as navigate directly to their declarations.
