Results 1 to 9 of 9

Thread: Messages

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2011
    Posts
    87

    Messages

    I am using Microsoft Visual Studio Community 2019 Version 16.9.4

    I suddenly have 76 messages telling me things like:

    Names must begin with Capitals
    Must use compound assignements

    I do not recollect ever seeing any of this before so how do I stop being nagged without turning off something useful?

    Thank you
    Bob
    .

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Messages

    Are you talking about messages in the Error List window, as opposed to errors and warnings? Can you provide actual examples of actual code and actual messages?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2011
    Posts
    87

    Re: Messages

    Quote Originally Posted by jmcilhinney View Post
    Are you talking about messages in the Error List window?

    Yes as per here - the number of Messages seems to vary - a few minutes ago it was 76!!

    Name:  ScreenHunter009787.jpg
Views: 174
Size:  21.5 KB

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Messages

    VS2019 and forth (I guess since I don't have the bug bag 2022 installed) pop such indications. They might can be disable but I haven't checked. Anyhow they are just info, not even warnings so just ignore them if you like.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  5. #5
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    9,017

    Re: Messages

    I usually ignore those unless it's a warning or error. Never thought about turning them off.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  6. #6
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,371

    Re: Messages

    I noticed that there is a naming rule violation. If you go to Tools > Options and then select Text Editor > Visual Basic > Code Style > Naming you will see the various naming convention rules and how they are treated.

    Removing those will likely eliminate most (if not all) of your "suggestions".
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  7. #7
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,102

    Re: Messages

    It looks like you ran the Code Analysis tool. The tool gives you a whole bunch of 'suggestions' based on a rule set, some of which DDay mentioned. I'm not sure that anybody uses ALL the code style rules that are applied, but most everybody uses at least some. You can turn off rules that you don't want...or you can turn off code analysis entirely, in which case you won't see any of them. Some of them are useful, though.
    My usual boring signature: Nothing

  8. #8
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Messages

    Quote Originally Posted by dday9 View Post
    I noticed that there is a naming rule violation. If you go to Tools > Options and then select Text Editor > Visual Basic > Code Style > Naming you will see the various naming convention rules and how they are treated.

    Removing those will likely eliminate most (if not all) of your "suggestions".
    I don't know why but at least in 2019 it's:
    Text Editor > Basic > Code Style > Naming
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  9. #9
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,958

    Re: Messages

    You can also override these settings by use of an .editorconfig file, https://editorconfig.org/ has more details. Recent versions of VS can generate these automatically for you from your VS configuration as well.

Tags for this Thread

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