• 大小: 2.03M
    文件类型: .zip
    金币: 2
    下载: 6 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 脚本  编辑  在线  

资源简介

NRefactory Code Completion Sample

=================================
This is a sample applications that shows how to do C# code completion in a text editor with NRefactory 5. We are using AvalonEdit as the text editor.

It's a pretty full featured sample containing ctrl space like code completion and method parameter completion. Also showing nice icons for different types in the completion window.
The project is structured so that the code completion part could be used directly as a library. Also C# scripts are supported, meaning files (.csx) that contain no class structure but just C# statements.

资源截图

代码片段和文件信息

using System;
using System.Linq;

public class Sample1
{
public event EventHandler MyEvent;

    public Sample1()
{
var a = “Hello“;
}

///
/// This adds two nubers together.
///

    public virtual int Add(int number1 int number2)
    {
        number1 + number2;
    }
}

public class OtherClass
{
    public void GetSample1()
    {
        var sample = new Sample1();
        sample.Add(10100);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-10-18 14:57  NRefactory-Completion-Sample-master\
     文件         483  2017-10-18 14:57  NRefactory-Completion-Sample-master\.gitattributes
     文件         118  2017-10-18 14:57  NRefactory-Completion-Sample-master\.gitignore
     目录           0  2017-10-18 14:57  NRefactory-Completion-Sample-master\Doc\
     文件       57214  2017-10-18 14:57  NRefactory-Completion-Sample-master\Doc\Screenshot.png
     文件       16896  2017-10-18 14:57  NRefactory-Completion-Sample-master\Doc\Thumbs.db
     文件         257  2017-10-18 14:57  NRefactory-Completion-Sample-master\Doc\copyright.txt
     文件        1042  2017-10-18 14:57  NRefactory-Completion-Sample-master\Doc\license.txt
     目录           0  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\
     文件     2797568  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.CSharp.dll
     文件      383205  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.CSharp.xml
     文件       57344  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.Cecil.dll
     文件       41472  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.IKVM.dll
     文件       73728  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.xml.dll
     文件       33123  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.xml.xml
     文件      421888  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.dll
     文件      335634  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\ICSharpCode.NRefactory.xml
     文件      512512  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\IKVM.Reflection.dll
     文件      317440  2017-10-18 14:57  NRefactory-Completion-Sample-master\Lib\Mono.Cecil.dll
     目录           0  2017-10-18 14:57  NRefactory-Completion-Sample-master\SampleFiles\
     文件         449  2017-10-18 14:57  NRefactory-Completion-Sample-master\SampleFiles\Sample1.cs
     文件          59  2017-10-18 14:57  NRefactory-Completion-Sample-master\SampleFiles\Samplescript1.csx
     目录           0  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\
     文件           4  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\.gitignore
     文件         257  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\CodeCompletion.gpState
     文件        4420  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\CodeCompletion.sln
     目录           0  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\ICSharpCode.AvalonEdit\
     文件        3856  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\ICSharpCode.AvalonEdit\AvalonEditCommands.cs
     目录           0  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\ICSharpCode.AvalonEdit\CodeCompletion\
     文件       11139  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\ICSharpCode.AvalonEdit\CodeCompletion\CompletionList.cs
     文件        2269  2017-10-18 14:57  NRefactory-Completion-Sample-master\Src\ICSharpCode.AvalonEdit\CodeCompletion\CompletionList.xaml
............此处省略293个文件信息

评论

共有 条评论