Editorsk icon indicating copy to clipboard operation
Editorsk copied to clipboard

Feature Suggestion: C# String Encode

Open doggy8088 opened this issue 8 years ago • 3 comments

Installed product versions

  • Visual Studio: 2015 Enterprise
  • This extension: 1.0.18

Description

Add an C# String Encode

Steps to recreate

  1. Open any text file in the editor
  2. Make a selection on any range of text
  3. Mouse right click on the selection
  4. Choose "Encode Selection", then click the "C# String Encode" (suggested feature)

Current behavior

Don't have a "C# String Encode" feature.

Expected behavior

Add "C# String Encode" feature.

doggy8088 avatar May 15 '16 17:05 doggy8088

What should it do? Escape quotation marks or...?

madskristensen avatar May 15 '16 17:05 madskristensen

Yes. Just escape the quotation marks or @. But there are two types of string.

  1. "xxxxx"
  2. @"xxxxx"

Maybe you can provide two types of string encode feature. Sometimes it just useful.

doggy8088 avatar May 15 '16 17:05 doggy8088

wonderful

wonderfuer avatar Sep 07 '16 10:09 wonderfuer