Wiki
Version 4 (modified by Charles, 5 years ago)

--

The IDE support for Cobra (whether MonoDevelop, Visual Studio or others) does not yet support autocompletion (aka Intellisense). There are some mitigators to help you out:

  1. Compiler suggestions: The Cobra compiler will make provide suggestions for unknown members. This comes in handy if you know a few characters of the member in question. For example, the code someString.tri will yield:
    error: Cannot find a definition for "tri" in "someString" whose type is "String".
    There are members with similar names including ".substring", ".toString",
    ".trim", ".trimEnd" and ".trimStart".
    
  1. @help directive: Within your Cobra code you can prefix an expression such as a type name, variable or method call with @help which will cause the Cobra compiler to generate an .html help file including type information and convenient search links:
    @help String
    t = [1, 2, 3]
    @help t  # will create a help file showing the interface to List<of int>
    
  1. Native autocomplete: Some editors such as UltraEdit? on Windows and TextMate on Mac will provide an autocomplete based on words found in the file. While this doesn't help with discovery, it can reduce typing when variables, types and methods are reused. Other editors such as gedit can support this through a plug-in.

Cobra is a community-driven open source project. If you would like to help with autocomplete support, speak up on the discussion forum.

See also: IDESupport, EditorSupport, HelpWanted