The JetBrains Blog

Blog

  • Blogs by Topic
    • English
    • Deutsch
    • Español
    • Français
    • 日本語
    • 한국어
    • Русский
    • 简体中文
    • Português do Brasil
    • Türkçe
    • IDEs

      • AppCode
      • CLion
      • DataGrip
      • DataSpell
      • Fleet
      • GoLand
      • IntelliJ IDEA
      • PhpStorm
      • PyCharm
      • Rider
      • RubyMine
      • WebStorm
    • Plugins & Services

      • Big Data Tools
      • Code With Me
      • Quality Assurance
      • JetBrains Platform
      • Rust
      • Scala
      • Toolbox App
      • Writerside
    • Team Tools

      • Datalore
      • Space
      • TeamCity
      • Upsource
      • YouTrack
      • Hub
      • Qodana
    • .NET & Visual Studio

      • .NET Tools
      • ReSharper C++
    • Languages & Frameworks

      • Kotlin
      • Ktor
      • MPS
    • Education & Research

      • Edu Products
      • Research
    • Company

      • Company Blog
      • Security
Dotnet logo

The .NET Tools Blog

Essential productivity kit for .NET developers

Follow
  • Follow .NET Tools:
  • share
  • RSS
Get Tools
Follow
  • Follow .NET Tools:
  • share
  • RSS
  • How-To's
  • Releases
  • Webinars
  • Events
  • .NET Annotated
  • Rider
  • ReSharper
Get Tools

Smart Paste

Smart Paste in Rider

Today, I'd like to introduce you to Smart Paste, a "little big feature" in Rider (as well as in ReSharper). It ensures the right escaping in string literals that are copy/pasted. For example, consider pasting The "Name" field is required into var error = "". We would paste the string, then move to both " characters and escape them with \", making sure there are no syntax errors. Rider helps us out here with a quick-fix that can escape illegal characters for us! Smart paste works in C#, VB.NET, JavaScript, XML, XAML and HTML files, and suggests escaping

Maarten Balliauw Maarten Balliauw
  • Privacy & Security
  • Terms of Use
  • Legal
  • Genuine tools
  • English
  • Deutsch
  • Español
  • Français
  • 日本語
  • 한국어
  • Русский
  • 简体中文
  • Português do Brasil
  • Türkçe
Copyright © 2000–2022 JetBrains s.r.o.