C#C
C#3y ago
Thalnos

❔ is it possible to add // at beginning of text line when caret is in current line?

string.Join("\n", str.Select(line => line.Contains("^") ? "//" + line : line))
Was this page helpful?