我怎么配置的Emacs speedbar为C#模式? [英] How do I configure Emacs speedbar for C# mode?

查看:76
本文介绍了我怎么配置的Emacs speedbar为C#模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 C#模式 Emacs的,当我打开speedbar,没有文件在默认情况下显示出来。我可以选择在speedbar模式显示所有文件,但此后每cs文件显示了一个[?]旁边的名称。如何正确配置speedbar所以它在默认情况下显示了的.cs文件?我如何得到'[+]'每个文件旁边,所以我可以在文件中导航?

I'm using Emacs with C# Mode and when I turn on the speedbar, no files show up by default. I can choose "show all files" on the speedbar mode, but then every .cs file shows up with a '[?]' next to the name. How do I properly configure speedbar so it shows up with .cs files by default? How do I get the '[+]' next to each file so I can navigate inside the file?

推荐答案

我认为欧洲央行与CEDET简直是太臃肿。我用speedbar单独与Emacs和我用的是原来的解析器C / C ++。只是这行添加到您的.emacs,你会没事的:

I think ECB with CEDET is simply too bloated. I use speedbar alone with emacs and I use the original parser for C/C++. Just add this line to your .emacs and you'll be ok:

   (speedbar-add-supported-extension ".cs")
   (add-to-list 'speedbar-fetch-etags-parse-list
    	    '("\\.cs" . speedbar-parse-c-or-c++tag))

这完全处理C#没有问题。希望这有助于。

This handles C# perfectly without a problem. Hope this helps.

这篇关于我怎么配置的Emacs speedbar为C#模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆