Coide完成问题? [英] Coide complete issues?

查看:54
本文介绍了Coide完成问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编辑器中看到一些奇怪的行为并且代码完成。几分钟前我写了以下代码



private void menuItem1_Click(object sender,System.EventArgs e)

{

SaveFileDialog sf = new SaveFileDialog();

sf.DefaultExt =" xls" ;;

sf.InitialDirectory =

Environment.GetFolderPath(Environment.SpecialFolde r.Personal);

}

在最后一行,当我输入Environment时并打到期间,我没有在代码完整列表中看到

的SpecialFolder。这段代码编译得很好。那个

让我感到惊讶。当我将鼠标悬停在最后一行的个人代码上时,我不会看到有关它的信息的气球提示。


有没有人有关于这可能是什么的想法?顺便说一句,在C#选项的

下,我有隐藏高级会员。未经检查。

解决方案

最好的我可以告诉它,这是一个令人讨厌的intellisense疏忽,IDE

intellisense似乎与嵌套类或枚举效果不佳。

我希望在惠德贝(我前几天才遇到这个问题

) 。


" Kerry Sanders" <二**** @ NOSPAMyahoo.com>在消息中写道

news:ne ******************************** @ 4ax.com ...

我在编辑器中看到一些奇怪的行为并且代码完成。 I
几分钟前写了下面的代码:

private void menuItem1_Click(object sender,System.EventArgs e)
{Save / SaveFileDialog sf = new SaveFileDialog( );
sf.DefaultExt =" xls";
sf.InitialDirectory =
Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
}

在最后一行,当我输入环境时并打到期间,我没有
在代码完整列表中看到SpecialFolder。这段代码编译得很好。
这令我感到惊讶。当我将鼠标悬停在最后一行的个人代码上时,我不会看到有关它的信息的气球提示。

是否有人对可能的内容有任何想法这个?顺便说一句,在C#选项下
,我有Hide Advanced Members未经检查。





嗨嘉里,


感谢您的发布。

根据我的理解,你的问题与intellisense有关。

但是在我的测试应用程序中,我无法重现你的问题。当我输入

环境时带有。然后intellisense将出现,我选择

SpecialFolder。

你能给我一些重现问题的步骤吗?谢谢


另外,通常情况下,按&时会产生智能感知。在

对象之后。如果它没有显示,你可以尝试按Ctrl + J强制它显示



你可以试试这是否有效


希望这会有所帮助。


祝你好运,

Jeffrey Tan

Microsoft在线合作伙伴支持
安全! - www.microsoft.com/security

此帖子按原样提供没有保证,也没有赋予任何权利。


--------------------

|来自:Kerry Sanders< di **** @ NOSPAMyahoo.com>

|新闻组:microsoft.public.dotnet.languages.csharp

|主题:Coide完成问题?

|回复: di****@NOSPAMyahoo.com

|消息ID:< ne ******************************** @ 4ax.com>

| X-Newsreader:Forte Agent 1.93 / 32.576英语(美国)

| MIME版本:1.0

|内容类型:text / plain; charset = us-ascii

|内容传输编码:7位

|行数:20

| X-Trace:

ofjmidbaofeaohdodbdpiflmbcekedmfhojhikkbagflhcboop dbncmpkanagmbggjbeemledeon

conkghdcopgoocdmbhomhgelcadcmifccdnmbgjhmnnmpgicog majhmjkkmjlgiegdnmldjhobp

hegcgdfo

| NNTP-Posting-Date:Sat,08 Nov 2003 22:01:09 EST

|日期:星期六,2003年11月8日21:02:09 -0600

|路径:

cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin

e.de!newsfeed。 icl.net!newsfeed.fjserv.net!news-xfer2.atl.newshosting.com!63。

218.45.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com! 38.144.126

..75.MISMATCH!feed1.newsreader.com!newsreader.com! rip!news.webusenet.com!peer

01.cox.net!cox.net!bigfeed.bellsouth.net!bignumb.b ellsouth.net!news.bellsout

h.net!bignews6.bellsouth.net.POSTED!not-for-mail

|外翻:cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197693

| X-Tomcat-NG:microsoft.public.dotnet.languages.csharp

|

|我在编辑器中看到一些奇怪的行为并且代码完成。

我写了

|几分钟前的以下代码:

|

| private void menuItem1_Click(object sender,System.EventArgs e)

| {

| SaveFileDialog sf = new SaveFileDialog();

| sf.DefaultExt =" xls";

| sf.InitialDirectory =

| Environment.GetFolderPath(Environment.SpecialFolde r.Personal);

| }

|

|

|在最后一行,当我输入环境时并且打了一段时间,我不用


|代码完成列表中的SpecialFolder。这段代码编译得很好。

那个

|让我吃了一惊。当我将鼠标悬停在最后一行的个人代码上时,我

不要

|看到有关它的信息的气球提示。

|

|有没有人对这可能是什么有任何想法?通过

的方式,在

|下C#选项,我有隐藏高级会员未经检查。

|

|


抱歉...通过电子邮件发送第一次尝试而非发布它适用于所有人。


======

是的,对不起......我应该说Intellisense而不是代码完成。 :)


无论如何,我的代码中没有什么特别的,因为我在第一条消息中发布了它。

System.Environment类的帮助条目确实如此我的MSDN 2003年10月库中的列表中甚至没有SpecialFolder

。这真的很奇怪。


如上所述,我输入环境,点击期间。我没有看到弹出的智能感知列表中的
特殊文件夹。我发布的代码

编译并正常运行。


这很奇怪。我刚刚在一个新的应用程序中尝试了这个并且它运行得很好。

我不确定我的特定应用程序有什么特别之处我是

在工作。它只是我目前正在使用的Windows表单类。

我在上下文菜单项的click事件中有代码。

感谢你的帖子。
根据我的理解,你的问题与intellisense有关。
但在我的测试应用程序中,我无法重现你的问题。当我用。键入
环境时。然后intellisense将出现,我选择
SpecialFolder。
你能给我一些重现问题的步骤吗?谢谢

此外,通常情况下,当你按下。时会产生智能感知。在一个
对象之后。如果它没有显示,你可以尝试按Ctrl + J强制它显示。
你可以试试这是否有效




I am seeing some weird behavior in the editor and with code completion. I wrote
the following code just a few minutes ago:

private void menuItem1_Click(object sender, System.EventArgs e)
{
SaveFileDialog sf = new SaveFileDialog();
sf.DefaultExt = "xls";
sf.InitialDirectory =
Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
}
On the last line, when I type "Environment" and hit the period, I do not see
SpecialFolder in the code complete list. This code compiles just fine. That
surprised me. When I hover over the code on Personal in the last line, I do not
see a balloon tip with information about it either.

Does anybody have any ideas as to what might be up with this? By the way, under
the C# options, I have "Hide Advanced Members" unchecked.

解决方案

As best I can tell, its an annoying oversight in intellisense, the IDE
intellisense doesn''t seem to work very well with nested classes or enums.
Its something I hope for in Whidbey (I just had that problem the other day
too).

"Kerry Sanders" <di****@NOSPAMyahoo.com> wrote in message
news:ne********************************@4ax.com...

I am seeing some weird behavior in the editor and with code completion. I wrote the following code just a few minutes ago:

private void menuItem1_Click(object sender, System.EventArgs e)
{
SaveFileDialog sf = new SaveFileDialog();
sf.DefaultExt = "xls";
sf.InitialDirectory =
Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
}
On the last line, when I type "Environment" and hit the period, I do not see SpecialFolder in the code complete list. This code compiles just fine. That surprised me. When I hover over the code on Personal in the last line, I do not see a balloon tip with information about it either.

Does anybody have any ideas as to what might be up with this? By the way, under the C# options, I have "Hide Advanced Members" unchecked.




Hi Kerry,

Thanks for your posting.
Base on my understanding, your problem related to the intellisense.
But in my test application, I can not reproduce your problem. As I typed
Environment with "." then the intellisense will show up, and i choose
SpecialFolder.
Can you give me some steps to reproduce the problem? Thanks

Also, normally, the intellisense will generate when you press "." after an
object. If it does not show up, you may try to press Ctrl+J to force it to
show up .
You can try if this works

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: Kerry Sanders <di****@NOSPAMyahoo.com>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Subject: Coide complete issues?
| Reply-To: di****@NOSPAMyahoo.com
| Message-ID: <ne********************************@4ax.com>
| X-Newsreader: Forte Agent 1.93/32.576 English (American)
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| Lines: 20
| X-Trace:
ofjmidbaofeaohdodbdpiflmbcekedmfhojhikkbagflhcboop dbncmpkanagmbggjbeemledeon
conkghdcopgoocdmbhomhgelcadcmifccdnmbgjhmnnmpgicog majhmjkkmjlgieikdnmldjhobp
hegcgdfo
| NNTP-Posting-Date: Sat, 08 Nov 2003 22:01:09 EST
| Date: Sat, 08 Nov 2003 21:02:09 -0600
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!t-onlin
e.de!newsfeed.icl.net!newsfeed.fjserv.net!news-xfer2.atl.newshosting.com!63.
218.45.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!38.144.126
..75.MISMATCH!feed1.newsreader.com!newsreader.com! rip!news.webusenet.com!peer
01.cox.net!cox.net!bigfeed.bellsouth.net!bignumb.b ellsouth.net!news.bellsout
h.net!bignews6.bellsouth.net.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197693
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I am seeing some weird behavior in the editor and with code completion.
I wrote
| the following code just a few minutes ago:
|
| private void menuItem1_Click(object sender, System.EventArgs e)
| {
| SaveFileDialog sf = new SaveFileDialog();
| sf.DefaultExt = "xls";
| sf.InitialDirectory =
| Environment.GetFolderPath(Environment.SpecialFolde r.Personal);
| }
|
|
| On the last line, when I type "Environment" and hit the period, I do not
see
| SpecialFolder in the code complete list. This code compiles just fine.
That
| surprised me. When I hover over the code on Personal in the last line, I
do not
| see a balloon tip with information about it either.
|
| Does anybody have any ideas as to what might be up with this? By the
way, under
| the C# options, I have "Hide Advanced Members" unchecked.
|
|


Sorry... emailed this first try instead of posting it here for everyone.

======
Yes, sorry... I should have said Intellisense instead of code complete. :)

Anyway, there is nothing special in my code as I posted it in the first message.
The help entry for the System.Environment class does not even have SpecialFolder
in the listing in my MSDN October 2003 library. This is truly weird.

As mentioned, I type Environment, hit the period "." and I do not see
SpecialFolder in the Intellisense list that pops up. The code that I posted
compiles and operate properly, however.

This is weird. I just tried this in a new application and it works perfectly.
I am not sure what is so special about my particular application that I am
working on. It is just a Windows form class that I am currently working with.
I have the code in the click event for a context menu item.

Thanks for your posting.
Base on my understanding, your problem related to the intellisense.
But in my test application, I can not reproduce your problem. As I typed
Environment with "." then the intellisense will show up, and i choose
SpecialFolder.
Can you give me some steps to reproduce the problem? Thanks

Also, normally, the intellisense will generate when you press "." after an
object. If it does not show up, you may try to press Ctrl+J to force it to
show up .
You can try if this works




这篇关于Coide完成问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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