First time here? Check out the FAQ!

Revision history  [back]

hotkey to swap backslashes with forward slashes?

Hi, I am bouncing between all major operating systems all the time and often need to copy/paste file paths into my code for testing. Windows' backslashes have always driven me up the all and I know I can just use raw strings to use them as-is in my python code. But I would much prefer to swap them for forward slashes instead. I can obviously seatch and replace but was wondering if this could be set up as a macro of sorts and tied to a hotkey?

Cheers, frank