简体   繁体   English

如何为C#模式配置Emacs speedbar?

[英]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.

相关问题 如何使用C#配置组策略? - How do I configure group policies using C#? C#Emacs模式问题 - 缩进和构建 - C# Emacs mode questions - indentation and build 如何使用C#为Outlook配置缓存Exchange模式? - How to configure Cached Exchange mode for Outlook using C#? 如何在c#中以反向模式进行子串 - how to do substring in reverse mode in c# 在 Emacs 中,如何在 C# 中更合理地使用 imenu? - In Emacs, how can I use imenu more sensibly with C#? 如何配置.NET / C#下的SQLite在NUnit测试中运行? - How do I configure SQLite under .NET/C# to run in NUnit tests? C#如何配置AWS API Gateway参数以映射到基本的AWS Lambda函数? - C# How do i configure AWS API Gateway parameters to map to a basic AWS Lambda Function? 如何配置C#程序以在首次启动操作系统时运行? - How do I configure a C# program to run when the Operating System is first started? 如何为 XSLT 代码片段配置 CruiseControl 的 C# 版本? - How do I configure CruiseControl's C# version for XSLT code snippets? 如何执行依赖注入来配置 c# 中的扩展方法? - How do I perform a dependency injection to configure extension methods in c#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM