Author |
Message |
Nevg
Joined: 26 Dec 2014 Posts: 6 Country: Russian Federation |
|
Cyrillic comment cause commenting all lines of script |
|
Some times when I try to add cyrillic comment starting with double minus "--", all text at query window comments with "--".
Sequence is following:
1. I type "--"
2. change language via "Ctrl-Shift"
3. type first letter
4. and something automatically runs thru the script and comments each line via "--"
Ctrl-Z undo only one line of comment, and it is unusable to uncomment script via Ctrl-Z, I should use selection with Alt key.
|
|
Tue Jan 20, 2015 8:29 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7963
|
|
|
|
Which editor do you use and the type of database you work with?
There 2 commenting shortcuts in SQL Assistant, Ctrl / and Ctrl - which are used for block commenting with /* */ or with -- comments. The block commenting is applied to the selection or the entire text if nothing is selected. Please be sure when you type --, you don't hold down the Ctrl key or it will comment the entire text with line comments --
|
|
Tue Jan 20, 2015 10:31 am |
|
 |
Nevg
Joined: 26 Dec 2014 Posts: 6 Country: Russian Federation |
|
|
|
I use Management Studio 2012. I'll try to turn off Ctrl-"-" shortcut, if it will not help i'll ask you again. Thank.
|
|
Tue Jan 20, 2015 11:17 am |
|
 |
Nevg
Joined: 26 Dec 2014 Posts: 6 Country: Russian Federation |
|
|
|
Can you help me, i cannot find where i can turn off this shortcut?
|
|
Tue Jan 20, 2015 11:22 am |
|
 |
Nevg
Joined: 26 Dec 2014 Posts: 6 Country: Russian Federation |
|
|
|
i have found it, Option-Targets-HotKeys property
|
|
Tue Jan 20, 2015 11:24 am |
|
 |
|