- In Visual Studio open Find and Replace
- Find what = "{[A-Z]}" (exclude " characters)
- Replace with " \1" (note space before \1)
- Check Match case and Use RegEx
- Done
Useful for correcting text documents copied from a PDF export that have lost spacing.
If some words (e.g. and) are not initially capitalised, fix these using:
If some words (e.g. and) are not initially capitalised, fix these using:
- Find what = "{[a-z]}and"
- Replace with "\1 and"