Author Topic: b-b becomes b - b  (Read 166 times)

0 Members and 1 Guest are viewing this topic.

Bryco

  • Water Moccasin
  • Posts: 1836
b-b becomes b - b
« on: November 01, 2018, 04:13:05 PM »
Is there a setting that will stop vs15 and vs17 from adding spaces to anything pasted w/ a "-"

gile

  • Water Moccasin
  • Posts: 2169
  • Marseille, France
Re: b-b becomes b - b
« Reply #1 on: November 01, 2018, 06:03:49 PM »
Hi,

I think this is not due to vs2015 or 2017, this is due to the fact you cannot use the '-' character in a variable name.
With C#, a variable name must start with either a letter, an underscore character (_), or the at symbol (@). Subsequent characters may only be letters, underscore characters, or numbers.
If you need to paste a string containing a '-', you have to enter a double quote before pasting it.
« Last Edit: November 01, 2018, 06:07:32 PM by gile »
Speaking English as a French Frog

Bryco

  • Water Moccasin
  • Posts: 1836
Re: b-b becomes b - b
« Reply #2 on: November 02, 2018, 01:58:11 PM »
Ty Gile that explains it perfectly