如何为C#模式配置Emacs speedbar? [英] How do I configure Emacs speedbar for C# mode?

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

问题描述

我正在使用Emacs与 C#模式,当我打开速度栏,没有文件默认显示。我可以在速度栏模式下选择显示所有文件,但是每个.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?

推荐答案

我认为ECB CEDET太blo肿了。我用emacs单独使用speedbar,我使用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.

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

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