[英]How do I configure Emacs speedbar for C# mode?
I'm using Emacs with C# Mode and when I turn on the speedbar, no files show up by default. 我在C#模式下使用Emacs,当我打开快速栏时,默认情况下不会显示任何文件。 I can choose "show all files" on the speedbar mode, but then every .cs file shows up with a '[?]' next to the name.
我可以在快速栏模式下选择“显示所有文件”,但随后每个.cs文件都会显示名称旁边的“[?]”。 How do I properly configure speedbar so it shows up with .cs files by default?
如何正确配置speedbar,以便默认显示.cs文件? How do I get the '[+]' next to each file so I can navigate inside the file?
如何获取每个文件旁边的“[+]”以便我可以在文件中导航?
I used speedbar earlier and got really irritated. 我之前使用过speedbar并且非常恼火。 I now use ECB .
我现在用ECB 。 ECB uses its own buffer for the tree and can optionally show the outline of the CS file in a separate buffer.
ECB为树使用自己的缓冲区,并且可以选择在单独的缓冲区中显示CS文件的轮廓。 They all fit in the same frame while Speedbar has its own frame.
它们都适合同一帧,而Speedbar有自己的框架。
I have some custom stuff setup for ECB. 我为ECB设置了一些自定义设置。 You can see it here.
你可以在这里看到它。
I think ECB with CEDET is simply too bloated. 我认为欧洲央行与CEDET过于臃肿。 I use speedbar alone with emacs and I use the original parser for C/C++.
我单独使用speedbar和emacs,我使用C / C ++的原始解析器。 Just add this line to your .emacs and you'll be ok:
只需将此行添加到.emacs即可,您可以:
(speedbar-add-supported-extension ".cs")
(add-to-list 'speedbar-fetch-etags-parse-list
'("\\.cs" . speedbar-parse-c-or-c++tag))
This handles C# perfectly without a problem. 这完全没有问题地处理C#。 Hope this helps.
希望这可以帮助。
It works for me. 这个对我有用。
I used 我用了
(speedbar-add-supported-extension ".cs")
and got this: 得到了这个:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.