真正基本的C#和Visual Studio 2008问题 [英] Really basic C# and Visual Studio 2008 question

查看:108
本文介绍了真正基本的C#和Visual Studio 2008问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是全新的,刚开始使用C#for Dummies。


我还整理了一个带有代码片段的网站列表和

教程。

如果我将示例中的以下行剪切并粘贴到Visual

Studio中,我会收到错误。


Console.WriteLine(?输入你的名字,请:?);


如果我手动输入和()字符,它摆脱了

错误。


为什么会这样?可以避免吗?我已经计划在学习代码时能够进行大量的剪切和粘贴。

I''m brand new, and just started C# for Dummies.

I''ve also put together a list of websites with code snippets and
tutorials.
If I cut-and-paste the following line from an example into Visual
Studio, I get errors.

Console.WriteLine(?Enter your name, please:?);

If I manually type the " and ( ) characters, it gets rid of the
errors.

Why is this? Can it be avoided? I had planned on being able to do a
lot of cut-and-pasting as I learn code.

推荐答案

简而言之,剪贴板中有一些愚蠢的东西会影响到编辑器中粘贴

代码。转到 http://www.stevemiller.net/ 并下载他的

将放置在任务托盘中的PureText程序。


< Mitch @ _._在消息中写道

news:c3 **** **************************** @ 4ax.com ...
Briefly, there''s goofy stuff going on in the clipboard that effects pasting
code into editors. Go to http://www.stevemiller.net/ and download his
PureText program that will sit in the Task Tray.

<Mitch@_._wrote in message
news:c3********************************@4ax.com...

我是全新的,刚开始使用C#for Dummies。


我还整理了一个包含代码片段的网站列表和

教程。


如果我将示例中的以下行剪切并粘贴到Visual

Studio中,我会收到错误。


Console.WriteLine("输入你的名字,请:");


如果我手动输入和()字符,它摆脱了

错误。


为什么会这样?可以避免吗?当我学习代码时,我曾计划能够进行大量的剪切和粘贴。
I''m brand new, and just started C# for Dummies.

I''ve also put together a list of websites with code snippets and
tutorials.
If I cut-and-paste the following line from an example into Visual
Studio, I get errors.

Console.WriteLine("Enter your name, please:");

If I manually type the " and ( ) characters, it gets rid of the
errors.

Why is this? Can it be avoided? I had planned on being able to do a
lot of cut-and-pasting as I learn code.


2008年5月23日星期五16:10:59 -0500,clintonG < no **** @ nowhere.com>

写道:
On Fri, 23 May 2008 16:10:59 -0500, "clintonG" <no****@nowhere.com>
wrote:

>简而言之,有一些愚蠢的事情正在发生在剪贴板中,将代码粘贴到编辑器中。转到 http://www.stevemiller.net/ 并下载他的
将放置在任务托盘中的PureText程序。
>Briefly, there''s goofy stuff going on in the clipboard that effects pasting
code into editors. Go to http://www.stevemiller.net/ and download his
PureText program that will sit in the Task Tray.



很高兴我问道。谢谢!

Glad I asked. Thanks!


有趣的是,它仍然无法正常工作。

实际上,如果我粘贴到记事本中,请选择全部,复制和粘贴到VS,

i得到所有相同的错误。


Visual Studio中是否有一些设置告诉它停止尝试

如此聪明?
Interesting, it still doesn''t work.
In fact, if i paste into Notepad, select all, copy, and paste into VS,
i get all the same errors.

Is there some setting in Visual Studio to tell it to stop trying to be
so smart?


这篇关于真正基本的C#和Visual Studio 2008问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆