Plain C# Editor in Visual Studio 2012 (No intellisense, no indentation, no code highlighting)

后端 未结 8 1897
情书的邮戳
情书的邮戳 2020-12-07 22:30

I just installed visual studio 2012 in my machine, I previously had visual studio 2012 RC which I uninstalled before. The installation was successful, but after I open a pro

相关标签:
8条回答
  • 2020-12-07 22:38

    Well, I still don't know what was the problem, but solved it by uninstalling visual studio 2012 final, then installing visual studio 2012 RC, and then without uninstalling RC installed again the final version.

    Thanks everyone for your help.

    0 讨论(0)
  • 2020-12-07 22:39

    Neither Oleg's solution (or variations suggested in the comments) or Repairing Visual studio worked for me. I finally stubmbled upon a fix shown here

    So 3 simple steps:

    1) Close all instances of Visual Studio

    2) run Developer Command Prompt for VS2012 (search in the Start Menu) as Administrator

    3) Then type devenv.exe /setup

    That did it for me.

    0 讨论(0)
  • 2020-12-07 22:40

    It may be that some of the settings are disabled in visual studio. Check the following settings:

    Tools->Options->Text Editor->C#->General->Auto list members
    Tools->Options->Text Editor->C#->General->Parameter information
    

    EDIT:

    Also check

    Tools->Options->Text Editor->C#->Intellisense->
    Show completion list after a character is typed
    

    Here is an article on ScottGu's blog which can be helpful:D

    Second EDIT:

    There is one more article on ScottGu's blog titled No Intellisense with VS 2010 RC (and how to fix it). Let me know if that helps. The patch is available here.

    Third Edit:

    Tools –> Import and Export Settings ->  Reset all Settings
    

    You can backup the old settings if you want. This solution is for visual studio 2012. I believe this should work

    Fourth Edit: Instead of changing it for only C#, change it for all the languages

    Tools > Options > Text Editor > All Languages
    

    In general, ensure that the checkboxes in the Statement Completion section are actively checked (not grayed out). There is a possibility of having a blue square rather than a tick mark. As the tick boxes are 3 state, the square meant that "Partial Selection" was in effect. Once the tick mark is in effect, restart Visual Studio and try it again.

    Final Edit:

    Looks like the installation is missing some files. I would advise you to download a fresh copy of the software and install it from scratch, with the default settings active.

    0 讨论(0)
  • 2020-12-07 22:47

    If you have any RC version it might be the cause.

    I had this issue with Visual Studio 2012 Developer Edition. I later found that i have Express Edition RC, i removed it and it solved the problem.

    And then i applied eggie's solution

    0 讨论(0)
  • 2020-12-07 22:50

    If you have vs2012 installed in another disk(say disk D:) than the RC(installed on disk E:), try copying E:\Program Files\Micosoft Visual Studio 11 to the corresponding folder on D:.

    0 讨论(0)
  • 2020-12-07 22:54

    Try deleting:

    • %appdata%\Roaming\Microsoft\Microsoft Visual Studio
    • %appdata%\Roaming\Microsoft\VisualStudio
    • %appdata%\Local\Microsoft\VisualStudio

    This should erase all of your visual studio settings (from all versions) and restore it to default, in case some old settings were left behind by the RC that the RTM doesn't like.

    Edit:

    Also you want to remove

    • My Documents/Visual Studio 2012/Settings
    0 讨论(0)
提交回复
热议问题