Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Resharper skip async/await keywords?

I am trying to see how new C# 5.0 asynchronous (CTP) features will work. I also use ReSharper. But because it is only a CTP, ReSharper doesn't support new keywords (async/await) and highlights them as errors.

This is how it looks (code from CTP samples)

ReSharper failed to understand async await keywords

Is it possible to make ReSharper just skip these words for now?

UPDATE

I tried Early Access Program ReSharper build 6.0.2151.53 (10 May 2011) with no luck. The issue is still there so if you want it to be resolved give your vote here (following Peter's answer).

like image 446
oleksii Avatar asked May 14 '11 17:05

oleksii


People also ask

What are some examples of async and await keyword in C #?

Sample examples of async and await keyword in C#. We are going to take a console Application for our demonstration. Example 1. In this example, we are going to take two methods, which are not dependent on each other. Code sample. class Program. {. static void Main(string[] args)

What is async and await in JavaScript?

Async and await are the code markers, which marks code positions from where the control should resume after a task completes. Let’s start with practical examples for understanding the programming concept. Sample examples of async and await keyword in C#.

What is the use of await keyword in real-time project?

Here, await keyword is playing a vital role for waiting of Method1 task completion. There are some supporting API's from the .NET Framework 4.5 and the Windows runtime contains methods that support async programming. We can use all of these in the real-time project with the help of async and await keyword for the faster execution of the task.

How to use ReSharper | ignored code option?

Select ReSharper | Options from the main menu or press Alt+R O, then choose Code Inspection | Ignored Code on the left. In the left part of the Elements to skip section, you can specify files or folders to be ignored by the code inspection.


2 Answers

Async is a new language syntax that is not yet RTM, so Resharper has yet to support it. If you feel this is important, the issue is being tracked b Jetbrains and you can vote for it here: http://youtrack.jetbrains.net/issue/RSRP-196518?projectKey=RSRP

like image 88
Peter Ritchie Avatar answered Oct 21 '22 08:10

Peter Ritchie


The Early Release of Resharper 6.1 now supports the async CTP.

If you can, it'd probably be worth waiting for the proper release version though.

like image 30
doglobster Avatar answered Oct 21 '22 07:10

doglobster