Notepad++'s pesky EOL Format switching -- how to remove the invisible (default?) keyboard shortcuts Ctrl+M, Ctrl+J

Posted by AKE on Super User See other posts from Super User or by AKE
Published on 2012-09-27T00:36:52Z Indexed on 2012/09/27 3:40 UTC
Read the original article Hit count: 215

Filed under:

Notepad++ lets the user specify whether the end of lines (EOL) format for a file should be entirely in Windows, Unix, or Mac formats. Notepad++ also remember the last one encountered in a file and uses that EOL format when a new file is created.

But Notepad++ seems to have some pesky default keyboard shortcuts built-in that can create MIXED format files, creating havoc with this otherwise quite reasonable situation.

Specifically:

- Ctrl+M puts a Mac style EOL, i.e. (0x0D only),
- Ctrl+J puts a UNIX style EOL, i.e. (0x0A only),

The hazard is that rapid typing and using the keyboard heavily with other shortcut commands could inadvertantly mean typing oone of these above, each time turning at least one line in the file into another EOL format.

So my Question: How can I turn OFF these apparently built-in keyboard shortcuts.

Please Note: I've already scanned through Settings > Shortcut Mapper and could not find Ctrl+M or Ctrl+J listed for EOL conversion.

Thanks,

© Super User or respective owner

Related posts about notepad++