Masthash

#ReSharper

Khalid ⚡
1 month ago

While I appreciate what pre-commit hooks can do, they add overhead that I’m not sure is worth it for me in the long run.

If you’re looking at adding #ReSharper CLI as a pre-commit action to all #dotnet environments, here are the files for Husky.NET: task-runner.json and resharper-cli.csx (you’ll need to install the ReSharper CLI tools).

Have fun :)

Task-runner.json file pointing to C# script
Running the ReSharper CLI after concatenating changed files.
InfoQ
1 month ago

🎉 New release alert - #ReSharper 2023.2 is here!

This version brings significant new features for #csharp and #cplusplus programming languages, and performance improvements, alongside productivity tools related to unit testing, AI Assistant, and more.

To learn more, read #InfoQ: https://bit.ly/3YIm59q

#dotnet #JetBrains

Khalid ⚡
2 months ago

You might want to use JetBrains.Annotations, if you’re using Feature Folders for #aspnetcore #mvc. The JetBrains.Annotations package tells #JetBrainsRider and #ReSharper where views can be located.

Here’s a quick screenshot of how to do that. #dotnet

Feature folders in ASP.NET Core MVC using JetBrains.Annotations
Maarten Balliauw
2 months ago

Getting ready for our #ReSharper and #JetBrainsRider release party in 𝑐ℎ𝑒𝑐𝑘𝑠 𝑤𝑎𝑡𝑐ℎ 30 minutes!

Join us for an overload of new and improved #dotnet tooling support!

👉 https://www.youtube.com/watch?v=2EcWy-GCPN0

Khalid ⚡
2 months ago

Howdy folks, We, #JetBrains, are having a #JetBrainsRider and #ReSharper release party in the next hour. Come and join us to see some of the latest features in action. Also, there’s live chat, so feel free to ask questions or drop a funny joke.

https://www.youtube.com/live/2EcWy-GCPN0?feature=share

Maarten Balliauw
2 months ago

Always impressed with new #JetBrains #ReSharper and #JetBrainsRider features.

Today: detect missing .Include() for #EntityFramework #EFCore! #dotnet

Khalid ⚡
2 months ago

The predictive #debugger in #ReSharper for #dotnet developers is pretty awesome. Rather than doing mental gymnastics, you can see potential values from branching paths. #JetBrains

https://blog.jetbrains.com/dotnet/2023/07/27/introducing-predictive-debugging-a-game-changing-look-into-the-future/

Khalid ⚡
2 months ago

Top-level statements are a neat feature of #dotnet, but some implicit returns happen when you add class definitions and functions to the end of the file.

With #JetBrainsRider and #ReSharper, you can have the tooling turn an implicit return into an explicit one, so there’s no confusion about where executing code ends and definitions start. #csharp

JetBrains Rider (thanks to ReSharper) adding an explicit return in a top-level statement file.
Josh G
2 months ago

Not sure if it's just me, but `Ctrl-T` (for finding things) seems much faster in #ReSharper in #VisualStudio than in #JetBrains #Rider on a lower spec'd machine for the same solution. It's actually a bit irritating.

Khalid ⚡
3 months ago

#ReSharper and #JetBrainsRider EAP 9 can now determine when a class can be converted to use #csharp 12 primary constructors. Check it out! #dotnet

Primary constructors are different than record definitions since primary constructors don’t create backing properties for parameters. #dotnet

https://blog.jetbrains.com/dotnet/2023/07/14/rsrp-rider-2023-2-eap9/

JetBrains Rider turning a constructor into a primary constructor
InfoQ
3 months ago

🚀 JetBrains has launched #ReSharper 2023.2 - the first AI-powered version of their renowned developer productivity extension.

Interested in finding out more? Read #InfoQ: https://bit.ly/3JWZ9wJ

#dotnet #Microsoft #VisualStudio #AI

Khalid ⚡
3 months ago

#jetbrains #resharper 2023.2 EAP 8 brings with it Assembly Diffing! If you’re wondering if the “latest” got released to production, well… guess no more! #dotnet

https://blog.jetbrains.com/dotnet/2023/07/10/resharper-2023-2-eap-8/

Khalid ⚡
3 months ago

#dotnet folks will love the new predictive #debugger in #ReSharper. It helps show predicted values and pathways your code may take based on input. This can significantly reduce debugging time. #JetBrains

https://blog.jetbrains.com/dotnet/2023/07/03/resharper-2023-2-eap-7/

JetBrains ReSharper showing predictive debugging (predicts values and pathways in debugging session) in Visual Studio.
Maarten Balliauw
3 months ago

Have you tried the AI-assistant in #JetBrains #ReSharper yet? Pretty cool if you ask me.

1) Dynamic Program Analysis says "this is slow"
2) Alt+Enter | Send to AI
3) AI Assistant gives correct fix (use DB filtering)

https://blog.jetbrains.com/dotnet/2023/06/26/resharper-ai-assistant/ #dotnet

Dynamic program analysis flags issue with fetching too many records from the database.
AI assistant suggests filtering on the database so only one row is fetched instead.
Khalid ⚡
3 months ago

While the #AI addition may be the flashiest of the #JetBrainsRider EAP 6 announcements, the other additions are just as excellent:

- #csharp enhancements (thanks #ReSharper)
- Customizable Project headers
- User accessibility improvements for visually impaired users.
- Structure view sorting & filtering
- Roslyn enhancements
- ARM32 support for remote debugging

🤩 Wowza!

https://blog.jetbrains.com/dotnet/2023/06/26/rider-ai-assistant/

#dotnet #aspnetcore #development

Khalid ⚡
3 months ago
JetBrains
3 months ago

@itsCupsy @suppoze Hi! Thank you for being so patient. 🖤
We are happy to introduce our new merchandise store to you: https://blog.jetbrains.com/blog/2023/06/19/introducing-the-brand-new-jetbrains-merchandise-store/
#ReSharper swag can be found here: https://www.jetbrainsmerchandise.com/brand/re-sharper.html

Ich musste gerade nach langer Zeit mal wieder #VisualStudio (mit #ReSharper) ... öffnen ... 😴😴😴 ... Ich hab' mich schon so an #Rider 😎✌🏼

Khalid ⚡
4 months ago

One of my favorite new quick fixes in #ReSharper has to be using the range index operator instead of SubString. #dotnet

It reads much nicer.

Using the range index operator to convert substring calls.
Khalid ⚡
4 months ago

The latest #ReSharper release adds #entityframework analysis to help catch common problems when working with databases and the popular #dotnet ORM.

Below, in #JetBrainsRider, it is determined that I forgot to “Include” the related entity.

Check out more on the #JetBrains blog.

https://blog.jetbrains.com/dotnet/2023/05/22/resharper-2023-2-eap-2/

Entity Framework Core query with a quick fix to add the Include automatically.
Khalid ⚡
5 months ago

The latest EAP release of #ReSharper adds new rules for fluent interface calls for your #csharp applications.

https://blog.jetbrains.com/dotnet/2023/05/15/resharper-2023-2-eap1/

#dotnet

Fluent interface rules for wrapping method call to the next line in ReSharper settings.
Khalid ⚡
5 months ago

Did you know you can tell #ReSharper to not trigger the “local variable is never used” warning in your #csharp projects just my renaming the variable to “unused”, “dummy”, or “_”.

#dotnet

Renaming a variable to “unused”
Khalid ⚡
5 months ago

If you’re a #ReSharper or #JetBrainsRider user and make #dotnet #OSS, I suggest you give JetBrains.Annotations a good look.

It helps you add more functionality to your libraries and helps reduce the false positives in solution-wide analysis. It’s a very powerful meta-programming approach to adding value.

https://www.jetbrains.com/help/rider/Reference__Code_Annotation_Attributes.html

Khalid ⚡
5 months ago

I added #JetBrains #Qodana to my #dotnet #OSS project, HTMX.NET. It runs a #ReSharper linter with over 2,000+ inspections in #GitHub Actions and then gives you an excellent report.

Worked through all the issues, and now all is well.

https://qodana.cloud

It Seems All Right 👌

Report from Qodana
Maarten Balliauw
5 months ago

The Call for Speakers for #JetBrains .NET Day Online 2023 is open!

Looking forward to seeing your #dotnet talk submissions 👀

https://jb.gg/anxo4v #JbDotNetDay #cfp #csharp #fsharp #JetBrainsRider #ReSharper

Dmitry Osipov :emacs:
5 months ago

Nice, #Resharper fucked up my key bindings, slowed everything down and popped up a bunch of notifications. And the most important part - I finally remembered why I didn't want to install it.

Khalid ⚡
5 months ago

Software #development is a team sport, and tools like #Qodana can help you and your team up your game.

Run word-class analysis tools to find issues and suggestions in your code base. The same tools that run in #ReSharper and #JetBrainsRider in fact.

https://github.com/JetBrains/qodana-cli

#dotnet

Maarten Balliauw
5 months ago

Did you know some collection methods (like .Add() on HashSet) already check if an item exists? No need to call .Contains() first! 💡

#ReSharper and #JetBrainsRider help make your code faster and reduce duplicate lookups.

Post by... me! https://jb.gg/zr59e6 #dotnet #csharp

Maarten Balliauw
6 months ago

There are 1500+ code inspections to detect potential bugs, code smells, and more issues 🐛👃 Of course, you can apply one of the 1900+ quick-fixes right away, but did you know that there are other courses of action? 🤔

Learn more in our latest post 👇 https://blog.jetbrains.com/dotnet/2023/03/20/why-is-resharper-suggesting-this/?utm_campaign=resharper&utm_content=why-is-resharper-suggesting-this&utm_medium=referral&utm_source=twitter

#dotnet #JetBrains #ReSharper #JetBrainsRider #coding

Maarten Balliauw
7 months ago

Just running your application can help with optimizing Entity Framework Core queries! 💡

Dynamic Program Analysis (DPA) in #resharper and #JetBrainsRider help you find and optimize database access code. 😎🚀

Post by yours truly https://jb.gg/snqs8b #dotnet #efcore #entityframework

Maarten Balliauw
7 months ago

Have you made use of #RawStrings or #Utf8Strings already? 👀

With #JetBrainsRider and #ReSharper, you can convert your whole codebase with just a single click! 🚀

Read more in our latest #csharp11 blog post! https://jb.gg/3j9rzk #dotnet

Maarten Balliauw
7 months ago

It's time to take a deeper look at how #csharp11 features work in #JetBrains #ReSharper and #JetBrainsRider!

In this first post by @matkoch, we will be looking at List Patterns and Span Pattern Matching! 👀

https://jb.gg/qle6hw #dotnet

jakenuts
7 months ago

Completed another annual “Can I use Visual Studio without #Jetbrains #Resharper” and based on the latest 17.5 preview the answer is again, “nope”.

Search - finally a centered search window! But so much superfluous text, code previews and the achingly slow response are deal breakers. Resharper instantly shows the file, class, method or symbol I’m looking for in a simple list always ordered by my recent use and magic.

Khalid ⚡
8 months ago

If you want to learn more about how you can use #JetBrains #ReSharper, we have a ReSharper Cookbook available to help you run through some straightforward #programming exercises. #dotnet

https://www.jetbrains.com/help/resharper/Cookbook.html

Khalid ⚡
8 months ago

July 21, 2004: JetBrains announces ReSharper for Visual Studio 2003. Giving developers intelligent refactoring and code editing assistance. #dotnet #history #jetbrains #resharper

July 21, 2004 JetBrains announces ReSharper for Visual Studio 2003. Giving developers intelligent refactoring and code editing assistance.
Maarten Balliauw
8 months ago

Starting from the upcoming 2023.1 release, #ReSharper and ReSharper C++ will stop actively supporting #VisualStudio 2010 and 2012.

https://jb.gg/czdmu2

Khalid ⚡
8 months ago

#JetBrains #ReSharper has an updated IL Viewer that allows you to see IL, Low-level C#, and High-level C# from an existing #csharp application.

It's wild that a two-line top-level statement application is lowered into 108 lines of code! 😱

I for one am glad we have all this syntactic sugar.

Visual Studio 2022 showing ReSharper IL Viewer
Khalid ⚡
8 months ago
Maarten Balliauw
8 months ago

There are some super useful new inspections for #csharp in #JetBrains #ReSharper (and #JetBrainsRider) to help reduce the number of lookups in collections.

* Remove redundant `.Contains` (e.g. on a `HashSet`)
* Remove redundant `.ContainsKey()` (e.g. on a `Dictionary`)
* Simplify with `.TryAdd()` when doing a `.Contains()` followed by an `.Add`

And quite a few more to help counter calls you don't need. Should make your code more readable, and in some cases, faster! #dotnet #performance

Remove redundant `.Contains` on a `HashSet`.
Remove redundant `.ContainsKey()` on a `Dictionary`
Simplify with `.TryAdd()` when doing a `.Contains()` followed by an `.Add`
Khalid ⚡
8 months ago

Before #JetBrainsRider found it's UX groove, there was a #ReSharper prototype IDE using WinForms.

It's amazing how far it's all come because of the amazing folks at #JetBrains and their hard work.

https://blog.jetbrains.com/dotnet/2022/08/03/happy-5th-birthday-rider/

ReSharper prototype IDE.
Maarten Balliauw
8 months ago

Did you know #JetBrainsRider and #ReSharper let you configure your code style with ease?

👩‍💻 Select code, Alt+Enter, configure code style
👉 Make changes, preview them on your code
😎 Save or share as .editorconfig etc.

Shows how to edit code style visually. Use Alt+Enter, configure code style. Then make changes and update code style.
Maarten Balliauw
9 months ago

TIL our #resharper language team did some crazy stuff in #JetBrainsRider...

1️⃣ Inject #csharp code in a #csharp string
2️⃣ Add a SQL language injection into that string
🤯 Edit fragment, get completion for that SQL in a #csharp string in a #csharp string

MartinDotNet
9 months ago

So... #Fleet is basically #VSCode with #Resharper... got it...

jessehouwing
9 months ago

@Nick_Craver #snyk and #GitHub #Dependabot should check the binary contents of nugets as well for the actual vulnerability. I once ran some scripts to find how many issues there are based on #resharper's nuget suggestion database. I can tell you, a lot.

Log4net was the most included binary of all.

I suspect the old, you have to add every dependency you depend on to your package.config is to blame here. No longer needed with modern <packageReference />.