内置C#/ VB.Net与智能感知的编辑器 - 罗斯林,VSTA,还是其他什么东西? [英] Built-in C#/VB.Net editor with intellisense - Roslyn, VSTA, or something else?

查看:495
本文介绍了内置C#/ VB.Net与智能感知的编辑器 - 罗斯林,VSTA,还是其他什么东西?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要我的应用程序内提供的脚本功能,允许客户在使用我们的对象模型来扩展其功能。我希望能提供某种集成C#/ VB.Net编辑器智能感知,但看着产品,如AvalonEdit和ScintillaNet后,他们似乎并没有提供真正的代码完成,只是一个API,你可以提供自己的列表项目出现在弹出自动完成列表中。

I need to provide scripting capabilities within my application, allowing customers to extend its functionality using our object model. I was hoping to offer some kind of integrated C#/VB.Net editor with intellisense, but after looking at products like AvalonEdit and ScintillaNet, they don't appear to provide true code-completion, just an API where you can provide your own list of items to appear in the popup autocomplete list.

所以我在想,如果罗斯林提供的这些功能?从教程和示例我已经遇到,看来罗斯林真的只是一个编译器服务。

I was therefore wondering if Roslyn provided any such features? From the tutorials and examples I've come across, it appears that Roslyn is really just a compiler service.

作为最后手段的客户可以使用类似VS快,但。集成的编辑器显然是有点漂亮

As a last resort the customers could use something like VS Express but an integrated editor is obviously a bit nicer.

(我也碰到过Visual Studio工具的应用,这听起来前途,但网上资源是几年前,和文档/教程是不存在的,所以我画一个空白与这一个)。

(I also came across Visual Studio Tools for Applications, which sounded promising; however the online resources are several years old, and documentation/tutorials are non-existent, so I've drawn a blank with this one).

推荐答案

我ceretainly不是专家在这个区域。但由于您没有收到任何其他答复,我就带了一枪。

I'm ceretainly not an expert in this area. But since you haven't received any other replies, I'll take a shot.

我觉得简单的答案是是。

I think the short answer is "yes".

综观AvalonEdit和SharpDevelop的代码,似乎代码完成是最困难的部分之一。从本质上讲,你必须写一个编译器(或分析器,反正)找出项目应完成清单上的东西。看来,罗斯林提供的工具构建完成列表。在旧版本中,这些工具被拴在VS编辑器,但我所看到的声明说,他们是独立的最新版本。如果是这样,这些工具将是在执行代码完成非常有用的。

Looking at the code in AvalonEdit and SharpDevelop, it appears that code completion is one of the most difficult parts. Essentially, you have to write a compiler (or a parser, anyway) to figure out what items should be on the completion list. It appears that Roslyn provides tools for constructing the completion list. In older versions, these tools were tied to the VS editor, but I have seen statements saying that they are independent in the latest release. If so, these tools will be very useful in implementing code completion.

我还没有真正看着在所有的细节,但我打算,因为我有一些相同的目标,你和罗斯林看起来会(根据我所知道的,到目前为止,这是不是很多)是有益的。

I haven't really looked into the details at all, but I intend to, since I have some of the same goals as you, and Roslyn looks like it will be helpful (based on what I know so far, which is not very much).

这篇关于内置C#/ VB.Net与智能感知的编辑器 - 罗斯林,VSTA,还是其他什么东西?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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