English 中文(简体)
视像室没有显示编辑的时间错误
原标题:Visual Studio not displaying compile time errors in editor

例如,我写了:

string x = "turtle";
x.Go();

没有红 line线探测到没有戈里(Go()法。

只有当我汇编时,才发现错误。

我刚刚升级到Windows 7,我有视觉演播室,2008年。

在我的旧环境中,在实际汇编之前发现了错误。

是否有我失踪的环境?

EDIT: “Tools -> Options -> Text Editor-> C# -> Underline mis in the Editor” 。

我有“Live Semantic”选择。 也许我需要去做的是特殊方案1?

问题回答

您需要查阅编辑和中的下线错误,在视觉演播室中可读到“<>/em>上的字迹”。

这些选择可在此找到:

<编码> 工具与工具; Options >text > C# > Superior > Editor Help

<><>Edit>: http://codebetter.com/blogs/david.hayden/archive/2008/05/13/ pornography-studio-2008-sp1-quot-background-compiling-quot-for-c.aspx” rel=“noretinger”

选择<>Tool->Options/strong>,然后Text Editor。 根据你使用的语言(见C#),进入 预设,并确保。 编辑的直线错误 现场测验错误

Stop the project. Open Folder Project. Delete .vs folder (he is a hidden folder) Then restart Visual Studio

http://www.un.org。

自2012年版视力演播室以来,这一做法一直围绕着此。 这一夹包括保存所有断点信息和其他节省的环境。 不清楚的是,为什么各组合在汇编错误不再出现的时候才到达。 如果你需要的话,删除“vs”的圆顶将迫使你再次这样做。

至:Tools > Options >text > C# > Superior > Editor Help

然后选定<代码>。 全面解决办法分析

我有同样的问题,并安装了SP1和<>>>。 编辑的直线错误 现场测验错误在VS2008年的各种选择中进行了检查。

我的解决办法是下载Microsoftudio 2008 Service Pack 1(Installer)和重新启用成套设备。 尽管它已经安装,但它仍被归类为修理或再安装。

恢复科索沃统计局一度解决了我的问题。

my solution; I know it won t help like 80% of the viewers, but for the sake of who it will: i have had a lot of noise in the IOS part of the solution, a VS bug that showed a lot of errors that weren t supposed to appear, so I just deleted the IOS part because I didn t really needed it as I didn t even had a Mac server to test it on... Something happened after that and the squiggly line returned! Seriously, VS team, fix your bugs...

JavaScript Type Checking Sometimes type checking your JavaScript code can help you spot mistakes you might have not caught otherwise. You can run the TypeScript type checker against your existing JavaScript code by simply adding a // @ts-check comment to the top of your file.

// @ts-nocheck 

let easy = true;
easy = 42;

Tip: 您也可以通过添加“javascript.implicit ProjectConfig.checkJs”来使制片工作空间或广泛应用:适用于您的工作空间或用户环境,并明确无视使用/// @ts-nocheck和/ @ts-ignore的文档或线。 查阅《联邦法典》中关于 Java的书,以学习更多知识。

In my case the problem was that I created a file with .s extension instead of .cs an then changed the extension to .cs once it was created. I deleted it and created again correctly and now VS is underlining the errors in this file.





相关问题
building .net applications without Visual Studio

I m interested to hear about people working with building .net applications using MSBuild, NAnt or similar tools. What are you using, why are you using it instead of the VS IDE? I like to use ...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Visual Studio 2010 Beta 2: Can I print in color?

I have to turn in a hard copy of some code with an assignment. Is there any way in Visual Studio 2010 to print C# source code with syntax highlighting? PS: The assignment is solving a math problem, ...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn t work. What am i doing wrong? protected void bttnView_Click(object sender, ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...