自动完成自定义类方法

时间:2018-02-10 14:19:01

标签: c# visual-studio-code intellisense

我是VS Code的新手,我发现自己无法使用其IntelliSense即自动完成功能。

我已经打开了一个文件夹而且没有看到“fire”图标要求我设置项目文件。我有这个设置:

  "editor.quickSuggestions": {
    "other": true,
    "comments": false,
    "strings": false
  },

然而,我在点击⌃Space时得到的只是简单的基于单词的建议(基于同一文件中使用的单词,而不是实际的汇编或我的自定义类)

我已经安装了C#extension / Mono / Dotnet CLI,我不知道此时我还能错过什么。

参考:https://code.visualstudio.com/docs/languages/csharp#_intellisense

这些是VSCode中的Omnisharp设置,是否设置不成功?我怎么能要求VSCode重新安装Omnisharp?

  // Specifies whether the OmniSharp server will be automatically started or not. If false, OmniSharp can be started with the 'Restart OmniSharp' command
  "omnisharp.autoStart": true,

  // Specifies the level of logging output from the OmniSharp server.
  "omnisharp.loggingLevel": "information",

  // The maximum number of projects to be shown in the 'Select Project' dropdown (maximum 250).
  "omnisharp.maxProjectResults": 250,

  // Specifies the full path to the OmniSharp server.
  "omnisharp.path": null,

  // The time Visual Studio Code will wait for the OmniSharp server to start. Time is expressed in seconds.
  "omnisharp.projectLoadTimeout": 60,

  // Specifes whether OmniSharp should use VS Code editor settings for C# code formatting (use of tabs, indentation size).
  "omnisharp.useEditorFormattingSettings": true,

  // Launch OmniSharp with Mono.
  "omnisharp.useMono": false,

  // Pass the --debug flag when launching the OmniSharp server to allow a debugger to be attached.
  "omnisharp.waitForDebugger": false

0 个答案:

没有答案