Sublime Forum

Replace text is wrong

#1

Hello I found an issue on Sublime Text 4. Replacing text is wrong. For example,

I replaced these text

import VLObjectSettings from '@/components/VLObjectSettings'
↓
import VLObjectSettings from '@/components/VL/Object/Settings'

via “Text replace feature”. But I got a result below.

import VLObjectSettings from '@/components/VL/objecT/settings'

The capital letter “T” and the small letter “s” were converted from the original text. It’s strange.

0 Likes

#2

You have “Preserve Case” enabled, which will upper/lower case letters to match the original.

0 Likes

#3

Oh I’ve confirmed that feature. Thank you for your information. I’d like to confirm the specification of the feature. Please confirm below. Is this OK? I thought this toggle button style might be opposite.

0 Likes

#4

Yes it’s working as intended. Enabling “Preserve Case” means the upper/lower case is preserved when replacing. When it’s disabled the case from the “Replace:” field is used.

0 Likes

#5

I understood! Thank you for your information!

0 Likes