24

Is there a shortcut? Ctrl + S gives I-search:, and that is case-insensitive.

2 Answers 2

41

You press M-c after you run search.

This will set the case-sensitive flag.

More generally, you can do: C-s C-h b to see all keybindings active during search, in isearch-mode-map.

13

In addition to M-c mentioned by alinsoar, entering a capital letter as part of your search string will cause the search to be case-sensitive.

2
  • should capital letter entered as the first character?
    – alper
    Jan 10 at 15:53
  • Not much use if you're searching for a lower-case string... :)
    – EML
    Mar 9 at 13:09

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.