Glitch Zen Coding in NPP (notepad++)?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
4 views
When you call Zen Coding -> Expand Abbreviation by using the standard Ctrl + E gives the following:

d33894154e9889d843bd68dc37120cbe.png


Tried to find it in the list of shortcuts that still use ctrl + e, like anywhere else.
by | 4 views

1 Answer

0 like 0 dislike
In the file plugins\ppscripting\\includes\\Zen Coding.js looking for the line:
\r
addMenuItem('Expand Abbreviation', 'expand_abbreviation', 'Ctrl+E');
and replace CTRL+E on any comfortable combination (ALT,CTRL,SHIFT, and single character).
If you want CTRL+space, you need a little more to change, looking for
\r
function addMenuItem(name, action, keystroke) {
after the line
\r
for (var i = 0, il = keys.length; i < il; i++) {
var key = keys[i].toLowerCase();
need to add:
\r
if (key=='space') key=' ';
And now the line
\r
addMenuItem('Expand Abbreviation', 'expand_abbreviation', 'Ctrl+E');
change to
\r
addMenuItem('Expand Abbreviation', 'expand_abbreviation', 'Ctrl+Space');
Then you work CTRL+space.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Mar 21, 2019 by myagi
0 like 0 dislike
1 answer
asked Mar 25, 2019 by Akuma
0 like 0 dislike
1 answer
asked Mar 25, 2019 by rapida
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,003 users