Visual Studio 2008有什麼方法可以順利切換使用Emacs鍵盤綁定和默認鍵盤嗎?我很快會做一些結對編程,我需要我的Emacs鍵盤綁定來保持自己的瘋狂。Visual Studio 2008:在Emacs和默認鍵盤綁定之間平滑切換
2
A
回答
1
VS宏創建一個新的,添加以下代碼:
Sub ToggleEmacsKeyBindings()
Dim emacsSchemeName As String = "Emacs"
Dim defaultSchemeName As String = "(Default)"
Dim props As EnvDTE.Properties = DTE.Properties("Environment", "Keyboard")
Dim propsItem As EnvDTE.Property = props.Item("SchemeName")
Dim previousScheme As String = propsItem.Value
If propsItem.Value = emacsSchemeName Then
propsItem.Value = defaultSchemeName
ElseIf propsItem.Value = defaultSchemeName Then
propsItem.Value = emacsSchemeName
End If
MsgBox("Previous Scheme: " + previousScheme + Environment.NewLine + Environment.NewLine + "New Scheme: " + propsItem.Value)
End Sub
然後,您可以assign a keyboard shortcut to this macro更快,更輕鬆地Emacs
和'Default'
鍵盤方案之間切換。
(注:本作品在VS 2005和VS 2008中沒有測試,但它應該工作過它也可以在VS 2010中安裝了Emacs emulation extension。)
1
相關問題
- 1. Visual Studio:在調試和發佈模式之間切換的鍵盤快捷鍵
- 2. 鍵綁定visual studio 2013切換標籤
- 3. UITextField - 在鍵盤和UIPickerView之間切換
- 4. 的Eclipse鍵盤綁定2008
- 5. Emacs在TTY +鍵盤綁定
- 6. Emacs:鍵盤和鍵之間的關係
- 7. 默認Visual Studio 2010和2008字體
- 8. 通過鍵盤在JPanel之間切換
- 9. 用於在項目抽屜和編輯器之間切換的鍵盤綁定
- 10. Visual Studio 2008的鍵盤快捷鍵
- 11. 更改TableViewer的默認鍵盤綁定
- 12. 切換到5.0鍵盤綁定
- 13. 如何在Visual Studio 2008/2010中切換調試asp.net的默認瀏覽器?
- 14. 默認平臺工具,在Visual Studio
- 15. 如何獲取Visual Studio 2008中未綁定鍵盤快捷鍵的列表?
- 16. Visual Studio 2008的默認C++性質?
- 17. Visual Studio 2008 Emacs模式
- 18. 在Intellij中水平分割窗口之間切換的鍵盤快捷鍵
- 19. 如何在Android中處理Emojipicker和鍵盤之間的切換?
- 20. visual studio 2008和visual studio 2010之間的區別
- 21. Visual Studio 2008和Visual Studio 2010之間的區別?
- 22. 如何在Visual Studio中獲取Emacs樣式的鍵綁定?
- 23. 在python2和python3之間切換作爲默認python
- 24. Atmel Studio中的Emacs鍵盤快捷鍵
- 25. jQuery平滑切換CSS值和自動之間的寬度
- 26. VsVim鍵盤快捷鍵在文件/標籤之間切換?
- 27. Emacs - 在視覺標記之間切換?
- 28. 全局覆蓋emacs鍵盤綁定
- 29. Ctrl + Tab鍵在Visual Studio 2008
- 30. 如何在Visual Studio 2008中刪除鍵盤快捷鍵?
你真了不起。謝謝! – 2010-06-22 07:29:50