VS2010的EMACS键映射插件

原创 2012年04月23日 15:14:06

插件的下载地址

http://visualstudiogallery.msdn.microsoft.com/09dc58c4-6f47-413a-9176-742be7463f92/


就是在键映射中添加了一些以  编辑.Emacs 开头的功能

实现了一些最常用的功能。


但是有一些东西还是有问题


一是 在智能感知InetlliSense的选择中不能使用C-p和C-n.但是确定的时候可以使用C-j这个真的很不方便


更不方便的还有不能使用C-S-p C-S-n等等直接选择文本


而且还有一些已知的问题,

比如不能从其他地方复制粘贴过来,这个确实很烦

TAB键回出现一些问题


还有就是我不是很多M-x的作用。。。


下面给出选择EMACS键映射之后的设置,完全可以根据自己的实际情况再修改


General Shortcut Keys


Command

Keys

Description

Edit.EmacsExtendedCommand

ALT + X

Places the cursor in the Find/Command box on the Standard toolbar.

Edit.EmacsFindReplace

SHIFT + ALT + 5

Displays the replace options in the Quick tab of the Find and Replace dialog box.

Edit.EmacsPasteRotate

ALT + Y

Pastes an item from the Clipboard Ring tab of the Toolbox to the file and automatically selects the pasted item. Press ALT + Y again to paste the next item to theClipboard Ring.

Edit.EmacsQuit

CTRL + G

Stops the current command or code and deactivates the region.

Edit.EmacsUniversalArgument

CTRL + U

Prompts for an integer, returns negative if the first character entered is a hyphen. When a non-digit character is entered, the prefix for the command is set to the entered integer. If no integer is entered, the default value is 4. Repeatedly invoking the command multiplies the current value entered by the previous accumulated value.

Text Manipulation


Command

Keys

Description

Edit.EmacsBreakLine

ENTER

Inserts a new line.

Edit.EmacsBreakLineIndent

CTRL + J

Inserts a new line and indents it.

Edit.EmacsCharTranspose

CTRL + T

Transposes the characters on either side of the cursor. For example, Ed|n Sub would be changed to read End| Sub.

Edit.EmacsDeleteSelection

CTRL + DELETE

Deletes the current selection.

Edit.EmacsDeleteToEOL

CTRL + K

Deletes from the cursor to the end of the current line.

Edit.EmacsLineOpen

CTRL + O

Inserts a new line after the cursor. The cursor stays in the current line.

Edit.EmacsQuotedInsert

CTRL + Q

Reads another key and inserts the key into the buffer. Keys must be 8-bit ASCII characters. Use this command to insert control characters, meta characters, or graphics characters into the buffer.

Edit.EmacsWordCapitalize

ALT + C

Capitalizes the character to the right of the cursor or the first character of the next word if the cursor is between words.

Edit.EmacsWordDeleteToEnd

ALT + D

Deletes the characters to the right of the cursor to the end of the word.

Edit.EmacsWordDeleteToStart

ALT + BACKSPACE
—or—
ALT + DELETE

Deletes the characters from the left of the cursor to the start of the word.

Edit.EmacsWordLowercase

ALT + L

Changes the selected text to lowercase characters.

Edit.EmacsWordTranspose

ALT + T

Transposes the words on either side of the cursor. For example, |End Sub would be changed to read Sub End|.

Edit.EmacsWordUppercase

ALT + U

Changes the selected text to uppercase characters.

Text Navigation


Command

Keys

Description

Edit.EmacsCharLeft

CTRL + B

Moves the cursor one character to the left.

Edit.EmacsCharRight

CTRL + F

Moves the cursor one character to the right.

Edit.EmacsDocumentEnd

END
—or—
SHIFT + ALT + . (period)
—or—
SHIFT + END
—or—
CTRL + X, ]

Moves the cursor to the bottom of the current document.

Edit.EmacsDocumentStart

HOME
—or—
SHIFT + ALT + , (comma)
—or—
SHIFT + HOME
—or—
CTRL + X, [

Moves the cursor to the top of the current document.

Edit.EmacsGoToLine

ALT + G

Displays the Go To Line dialog box, which allows you to navigate to a specific line of code in the current document.

Edit.EmacsLineDown

CTRL + N

Moves the cursor down one line.

Edit.EmacsLineEnd

CTRL + E

Moves the cursor to the end of the current line. If you use word wrap, the cursor moves to the physical, not the displayed, end of the current line.

Edit.EmacsLineStart

CTRL + A

Moves the cursor to the beginning of the current line. If you use word wrap, the cursor moves to the physical, not the displayed, beginning of the current line.

Edit.EmacsLineUp

CTRL + P

Moves the cursor up one line.

Edit.EmacsPopMark

CTRL + X, CTRL + SPACEBAR
—or—
CTRL + X, CTRL + SHIFT + 2

Moves the cursor to the current mark and then removes the mark for the location stack.

Edit.EmacsScrollLineCenter

CTRL + L

Scrolls the document so that the current line is now in the center of the viewable area in the editor.

Edit.EmacsScrollLineTop

SHIFT + ALT + 1

Scrolls the document so that the current line appears at the top of the viewable area in the editor.

Edit.EmacsScrollPageDown

CTRL + V

Scrolls down within the document.

Edit.EmacsScrollPageUp

ALT + V

Scrolls up within the document.

Edit.EmacsSetMark

CTRL + SHIFT + 2
—or—
CTRL + SPACEBAR

Adds a mark to the location stack for the current cursor.

Edit.EmacsSwapPointAndMark

CTRL + X, CTRL + X

Moves the cursor to the current mark in the location stack and moves the current mark to the location where the cursor mark was when the command was invoked.

Edit.EmacsWordNext

CTRL + RIGHT ARROW
—or—
ALT + F
—or—
ALT + RIGHT ARROW

Moves the cursor to the first character in the next word.

Edit.EmacsWordPrevious

CTRL + LEFT ARROW
—or—
ALT + B
—or—
ALT + LEFT ARROW

Moves the cursor to the first character in the previous word.

File Management


Command

Keys

Description

Edit.EmacsFileSaveDirty

CTRL + X, S

Displays a list of modified files and allows you to select which files to save.

Window Management


Command

Keys

Description

Edit.EmacsCloseOtherWindow

CTRL + X, 1

When a window is split, this shortcut closes the pane that does not have focus.

Edit.EmacsOtherWindow

CTRL + X, O

Switches focus between panes when a window is split.

Edit.EmacsSplitVertical

CTRL + X, 2

Splits the current document in half vertically. The current line of code is centered in each window.



Linux下编辑文件方式Emacs 操作快速指南,快捷键速记

这两天一直在熟悉Emacs,之前linux环境下用的最多的是VIM,没有其他原因,就是因为VIM容易记,快捷性强,很容易上手。这不,刚开始学Emacs的时候,觉得很不适应,组合键太多,给人的第一印象就...
  • elfprincexu
  • elfprincexu
  • 2015年02月03日 14:52
  • 1512

emacs修改键盘映射

一、用手掌按Ctrl键     修改Menu键为Control键      ubuntu:System Settings->keyboard->keyboard layouts->options->...
  • linuxgoer
  • linuxgoer
  • 2016年04月17日 11:32
  • 190

Emacs 键映射(keymap)

Emacs 键映射(keymap)    一个键序列是由一些键值单元组成的。键值包括字符,功能键和鼠标按钮以及所有你能发送到电脑的输入。 在elisp中键序列要么是字符串,要么就是向量。 控制字符以...
  • joans123
  • joans123
  • 2012年05月13日 14:24
  • 4259

emacs的RET是哪个键

回车。
  • u011421608
  • u011421608
  • 2015年11月15日 21:43
  • 1672

Emacs的Tab键

fromr:http://www.cnblogs.com/gamesun/archive/2012/12/23/2830184.html 在Windows里待久了的人,初用Emacs时,对它...
  • fengzizhuang
  • fengzizhuang
  • 2013年10月17日 10:00
  • 1433

Emacs 绑定键盘的技巧

Emacs 绑定键盘的技巧。 万无一失的绑定方法 很多人绑定一些比较特殊的键的时候,都搞不清楚在 (global-set-key ... 'my-funtion) 里写些什么。特别是在 xt...
  • rodneyzhaonet
  • rodneyzhaonet
  • 2015年03月01日 19:11
  • 898

Xshell emacs backspace

FROM : http://hi.baidu.com/gz_gzhao/item/93221aedec6e09b32f140bda
  • dengxianzhi
  • dengxianzhi
  • 2014年05月07日 10:31
  • 769

Mac 2016 运行Emacs,M-x键失效问题

入手了Mac,发现安装emacs后M -x不能用,百度无果后自己折腾一番,将配置记录下来,方便后来人 1、打开终端 2、选择           ----->编辑            -------...
  • u010164190
  • u010164190
  • 2017年02月19日 21:22
  • 922

解决terminal中emacs的alt键和菜单栏冲突

还记得以前用 alias emacs='emacs -nw' 让emacs默认在terminal中打开,但是用emacs的alt组合键时会优先选中菜单栏。下面就是解决办法: 运行 gconf-edi...
  • nicekwell
  • nicekwell
  • 2014年03月27日 09:25
  • 1545

Mac OS的终端里的emacs里mate键的使用

在 终端->偏好设置->键盘 里勾上“使用Option键作为meta键”
  • gongchenzhang
  • gongchenzhang
  • 2012年02月13日 14:51
  • 447
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:VS2010的EMACS键映射插件
举报原因:
原因补充:

(最多只允许输入30个字)