Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6160707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:21:02+00:00 2026-05-23T21:21:02+00:00

This is baffling me, I am unable to find this setting if it exists.

  • 0

This is baffling me, I am unable to find this setting if it exists.
I am 90% sure that my code used to compile on save before.
I only started having this issue when using C#, .net worked fine.

But now I am only able to get rid of error lines etc, when choosing to enter debug mode.
For example when I have a method

public bool Method1(){
//No code added yet so I get a blue line saying return something
} 

Even when I add what to return inside the method the line remains there on save. It only goes away when I build.

(This is just one example it seems to happen with lots of other things)

EDIT – In regards to options to compile on save.

The options in Build and Run are set Correctly

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T21:21:03+00:00Added an answer on May 23, 2026 at 9:21 pm

    That should produce a red underline and an entry in the Error List window: “not all code paths return a value”. It is produced by the IntelliSense parser, not the compiler. Saving the file does not remove the error hint, only opening another project does. And fixing the code of course.

    There is a bug of sorts in this logic, in some cases the Error List doesn’t get purged. The only workaround I’ve seen is to restart Visual Studio. I’ve only seen this with certain IntelliSense warnings and it only affects the Error List, not the editor. I can’t remember the exact type of warning that triggers this, it only ever happened when opening a project with code I didn’t write. These messages don’t normally last long when I’m editing code. Which is by far the best solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is really baffling me. I've never used XML before, so I'm just playing
This has been baffling me recently, and I can't seem to find a suitable
This is pretty basic question I am sure but it's baffling me now :S
Ok so this problem is baffling me. I have a custom class that all
This is a baffling one. My ASP.NET 3.5 app that was working fine suddenly
This is baffling me, maybe somebody can shine the light of education on my
This problem is baffling me: BEGIN; INSERT INTO sub_users(user_id, email) SELECT user_id FROM users
I'm relatively new to C, and this is baffling me right now. It's part
I'm not a pro with swing layout managers and this behavior is completely baffling
I'm running into an issue that's really baffling me. I have a container that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.