CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2009
    Location
    Riga, Latvia
    Posts
    128

    Coding Style: code spell-check

    Good evening!

    This question is relating to IDE, not programming.

    Is there a way to spell-check my code in Visual Studio and have typos underscored? This seems to be a logical step from syntax highlighting. I want to spell check my variable, function, class etc. names not only comments as Visual Assist X offers. It's very sad when I have compile time errors because of stupid typos.

    At the moment I'm using UltraEdit + MinGW and name_my_identifiers_like_this, but I'd like to move to Visual Studio. It would also be good to have spell check ofWordsInCamelCase. I've heard that VS2008 includes spell checker. Does it work as I described?

    Thanks in advance!

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Coding Style: code spell-check

    I think you already have what you are looking for.
    If you establish coloring scheme in VAX, any misspelled function would not change color and it will stay black.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  3. #3
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Coding Style: code spell-check

    I forgot to add. VAX adds a red squiggle underline if function/variable name is misspelled.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  4. #4
    Join Date
    Mar 2009
    Location
    Riga, Latvia
    Posts
    128

    Re: Coding Style: code spell-check

    This is not really the thing I need. Say I have a function (or method) named GetVariabel() (See mistake?) If I didn't know how the word 'variable' is written correctly I would still continue to write GetVariabel() in my code. So I need something that would underline the 'variabel'. English is not my mother tongue, but I don't want to look like in-alphabetized!

  5. #5
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Coding Style: code spell-check

    English is not my mother tongue.

    Sorry for posting this useless comment, but "mother tongue" looks amazing in this question context

  6. #6
    Join Date
    Mar 2009
    Location
    Riga, Latvia
    Posts
    128

    Re: Coding Style: code spell-check

    I didn't really understood what you mean. If you think that tongue is only a part of body than you are false, see http://en.wikipedia.org/wiki/Native_language, or http://thesaurus.reference.com/browse/mother+tongue 'native language', 'mother tongue' and even 'birth tongue' are perfect synonyms. Probably I should give up with an idea to get spell check for my code as some people need thesaurus and the code will stay in-alphabetized forever.

    If you try to increase maintainability of your code in international environment you must name identifiers in English. If you lack of smth. or can't use reserved word go to standard procedure: English -> Latin -> Greek(transliterated). This is the standard way to write syntactically correct and readable code using 26 letters of English ABC. And now try to guess what do the following functions do: poluchitjPeremennuju() and dabuutMainiigo()
    Last edited by andrey_zh; November 15th, 2009 at 04:43 PM.

  7. #7
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: Coding Style: code spell-check

    Quote Originally Posted by andrey_zh View Post
    I would still continue to write GetVariabel() in my code. So I need something that would underline the 'variabel'.
    I do not know what version of VAX you are running. This case is also underlined and in color different from the one you assigned to display functions/variables providing it is already declared.
    I am sure there in no such a spelling checker that would correct name you mention in your code. It would be very difficult and not practical to write one. Write parts of the word as a string and VA will correct it. Than you can concatenate.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured