Solution for Notepad++ Editor Ctrl+Y Not Working or Unable to Redo
When using the notepad++ editor, Ctrl+Y sometimes doesn’t work, and it’s intermittent. Today I finally found the reason - it’s because of the Zen Coding plugin. The Zen Coding plugin’s shortcut keys conflict with notepad++‘s own shortcut keys, making it impossible to use Ctrl+Y to redo operations. You can press Ctrl+Z but not Ctrl+Y. The solution is as follows:
In \plugins\NppScripting\include\Zen Coding.js, I found it in this file. You can search for “Ctrl+Y” to find it. On my end, it was found at line 8010: “addMenuItem(‘Evaluate Math Expression’, ‘evaluate_math_expression’, ‘Ctrl+Y’);”. Literally speaking, it’s for evaluating mathematical expressions - if you select an expression like “1+1” and press Ctrl+Y, it will be replaced with 2. Haha, I don’t need this feature, so I commented out that line, then restarted Notepad++, and it returned to normal.