• 尝试VS插件


    从试用vs2013开始,ide变得越来越智能,但是vs2013总是会出一些莫名其妙的问题,导致编译不成功,不能跟vs2010共享等等。于是由再次回到vs2010.

    现在vs2015的update1更新很久了,update2也快出来了。

    于是,尝试把代码转移到vs2015上来。

    顺便尝试了下比较有名的插件

    1、ReSharper 10.0.2

    主要用这个插件来重构代码。

    网上下载,然后找个pj……,注意,我只是在2013上做了尝试。

    [
      {
        "Name": "dotCover",
        "FilePath": "%LocalAppData%\JetBrains\Installations\dotCover04\JetBrains.Platform.Shell.dll"
      },
      {
        "Name": "dotMemory",
        "FilePath": "%LocalAppData%\JetBrains\Installations\dotMemory04\JetBrains.Platform.Shell.dll"
      },
      {
        "Name": "dotTrace",
        "FilePath": "%LocalAppData%\JetBrains\Installations\dotTrace04\JetBrains.Platform.Shell.dll"
      },
      {
        "Name": "ReSharper",
        "FilePath": "%LocalAppData%\JetBrains\Installations\ReSharperPlatformVs12\JetBrains.Platform.Shell.dll"
      }
    ]

    注意修改此路径;

    验证了以下情况

    会将选项——文本编辑器——C#——高级——显示实时语义错误、在编辑中用下划线标识错误这两个选项去掉。这个本来没有什么,但是如果卸载了Resharper,
    
    vs编辑器变不会实时提示错误。因此卸载Resharper后,需要把这两个选项重新勾选上。

    发现硬pj好像无效啊……

    试试注册表

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExtSettings{9656c84c-e0b4-4454-996d-977eabdf9e86}]
    "{294AEEB3-D72E-426D-8AF8-2BBA18633156}"="{ReSharper,ReSharperCpp,dotCover,dotMemory,dotTrace}"
    "a3e2c54b-9520-517a-af7f-c83a5fd4f413"="znxFvQ58uDPcxkLgvTd2ZCk1bSkrI9Y+8z0fV5x58arJOCD6nIq7WWnQnphVcGSXAt4hnTEShGApcSwQk3pjDT+YEk25NgqWNfZddZQPT1xE3QbMQQU5wj0SIC2tTQXUR2ZZWA6t42gpgSHI0h/CoulzUow2UaA4zTdPyFyeYkud5o3BuoZ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rWKZUkcfH3eTsB5K8iFC+XzXNKdPjRTvuB5jXcvTcMnbVOzQLCeczNwqYtKxfDJxPJEeo13ImBJsxDuoFpmGN9feebBl0QG8WTD4nMio6eNQJ2yNbHfAEsaEgS/ilwgw=="
    "792e31bf-5593-57e3-828d-70ef547a92cf"="DZZQKB6ZNP0TlAtUkB7YVYIirW+LX+OoGX9hI6lsua2RXNNA4m8sRVe7pN4ya3smZq038o3g+QutaCT58NJ4cj0AUQ3jhpjkI64wADhVx6Xs+uAebP8IO1/N9BLw2D4snyeavsPu3l+xj+fuJTzZtBTa6eaOqStm863NM4DLgcI1/uhMv07QR3jNxyvuP/56xgSFdhcyIequL5rDbrdLaIqbqToemmw4fup+0JVIKvRpWPXJygw+vA=="

    2、stylecop

    这是开源的,用来进行代码检查。

    主要就是规范化。备用。

    http://stylecop.codeplex.com/

     ----------------测试------------------

    硬破解有效,是key的问题

    其他:针对10.0.2

    1、去除“var”提示

    Resharper-Options...
    “Code Inspection”-“Inspection Severity”
    "C#"-"Code Style"-"Use preferred 'var' stle"
    选择“Do not show”

     2、停用

    命令窗口输入:

    挂起

    ReSharper_Suspend

    重新载入

    ReSharper_Resume

  • 相关阅读:
    Spring Boot:拦截器与过滤器
    [Locked] Maximum Size Subarray Sum Equals k
    [Locked] Generalized Abbreviation
    [Locked] Meeting Room I && II
    [Locked] Zigzag Iterator
    [Locked] Paint House I & II
    [Locked] Number of Connected Components in an Undirected Graph
    [Locked] Best Meeting Point
    [Locked] Sparse Matrix Multiplication
    [Locked] Two Sum
  • 原文地址:https://www.cnblogs.com/feedback/p/5324170.html
Copyright © 2020-2023  润新知