C# / CSharp and auto-completion

2005-07-22
2012-11-13
  • Nobody/Anonymous

    I seem to be doing something wrong. I'm trying to add an auto-completion file for C# (added a c#.api file with alphabetically sorted contents in the same directory as the other api files) but it doesn't seem to be doing anything. After adding it I open a .cs file and start entering one of the words in the api file and press ctrl-space and nothing happens.

    What am I doing wrong?

     
    • Nobody/Anonymous

      Well thanks everyone for jumping in to help.

      I figured it out myself by looking through the stylers.xml file. The api file has to be named cs.api instead of c#.api.

      Now, hopefully the next time someone is looking for the answer to this question, they'll find it. I searched through all messages with autocompletion or auto-completion and didn't find anything.

       
      • Don HO

        Don HO - 2005-08-03

        I didn't notice that the Auto-completion Howto is not updated. Sorry for that and I'll make it update.

        Don

         
        • Nobody/Anonymous

          you mind sharing that cs.api with us?

           
          • Nobody/Anonymous

            I was looking for this too (C# autocomplete api file)  and couldn't find one, so I build one using the keyword table on the C# reference guide - it was simple enough (copy/paste)
            http://msdn.microsoft.com/library/en-us/csref/html/vclrfCSharpKeywords_PG.asp
            http://msdn.microsoft.com/library/en-us/csref/html/vclrfPreprocessorDirectives.asp

            Here is the list I came up with... probably not very complete, but I'm a noob...  Just copy/paste it into your cs.api file.

            if
            #else
            #elif
            #endif
            #define
            #undef
            #warning
            #error
            #line
            #region
            #endregion
            abstract
            as
            base
            bool
            break
            byte
            case
            catch
            char
            checked
            class
            const
            continue
            decimal
            default
            delegate
            do
            double
            else
            enum
            event
            explicit
            extern
            false
            finally
            fixed
            float
            for
            foreach
            goto
            if
            implicit
            in
            int
            interface
            internal
            is
            lock
            long
            namespace
            new
            null
            object
            operator
            out
            override
            params
            private
            protected
            public
            readonly
            ref
            return
            sbyte
            sealed
            short
            sizeof
            stackalloc
            static
            string
            struct
            switch
            this
            throw
            true
            try
            typeof
            uint
            ulong
            unchecked
            unsafe
            ushort
            using
            virtual
            volatile
            void
            while

             

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks