I am using visual studio 2022 with codeRush 23.2.7
Open a TypeScript file (.ts)
add a block comment:
e.g.
TypeScript/**
* This is my comment
*/
add the word "and" after "comment"
TypeScript/**
* This is my comment and
*/
-> the word "and" is automatically replaced by "&&"
Hint:
This only occurs on lines that do not contain a slash ( / ) "near its beginning".
e.g.
TypeScript/* and
* This is my comment &&
*/ and
Hello,
While I am unable to reproduce the issue without the full source code, you can disable 'and' and 'or' templates to avoid unexpected expansions. I attached a video to illustrate how you can do this.
Thank you Alex,
your video allowed me to disable the auto-replacement specifically for the words "and" and "or", but these were only examples.
I don't know the full list of words that are automatically replaced by unwanted terms, but another one is the word "to" that is replaced by
the word "object".
The steps to reproduce are quite simple:
/** * typing the word "to" then space: object */
add a line just before the last one (before the line containing "*/") and just type the word "to", followed by a space:
-> the word "to" is automatically replaced by "object".
if you type "to" followed by a space at the end of the line, then "to" is replaced by ": object".
Hello,
I reproduced the issue, and we will research it. It looks like there is something wrong with handling the WinForms project along with the .ts file.