AutoReplace in Comments

rowanmoor

Member²
We are currently testing version 10 in order to upgrade our organisation. However, we have found a show-stopper for us.

We have come to heavily rely on AutoReplace, but we don't want it to replace in comments. We use it for coding shortcuts to dramatically improve our efficiency and coding standards. When we write comments we are writing English, not code. Therefore AutoReplace must not replace in comments for our way of working.

Looking back over the release history I have spotted this change in 9.0.6:
* Editor AutoReplace function did not work within comment blocks

BUT, in the change history for 8.0.1 there is the change:
* AutoReplace is no longer automatically invoked when typing comments or strings

I think the 9.0.6 change is in response to this thread where it is suggested that it should be a switch as different people use it in different ways.

Am I just missing a new switch that has been added somewhere or has the previously requested feature been 'broken' by a new conflicting request?

For now it looks like we are going to have to keep to a version below 9.0.6.
 
Thanks Marco. I'll keep an eye out for it in future updates.

At least it isn't my eyesight missing it in the settings.
 
This should've been implemented as a preference back in v9. Maybe in v11 we can get it. I don't like the new behavior either.
 
I wrestled with this as well. My solution is to have an asterisk at the end of my AutoReplace commands and it works. I think of "*" as the trigger to cause AutoReplace to happen. For example, "nfs*" is replaced with "-- NoFormat Start", but "nfs" doesn't cause a replacement.
 
Back
Top