精华内容
下载资源
问答
  • 最近突然发现出了一款名为“Kite”的代码自动补全插件,网址:https://www.kite.com/integrations/vs-code/。点击下载: 下载完成后按照提示进行安装即可。可能安装过程中需要注册账户之类的。 安装完成后重启...

        之前写python代码一直用的是VS Code,但是这款免费的IDE并没有针对python的智能提示,搜索了一些插件后发现智能提示也不好用,远没有Visual Studio之类写C++时的提示好用。

        最近突然发现出了一款名为“Kite”的代码自动补全插件,网址:https://www.kite.com/integrations/vs-code/。点击下载:

    下载完成后按照提示进行安装即可。可能安装过程中需要注册账户之类的。

    安装完成后重启VS Code即可。这个时候可以测试下,效果如下:

    应该说这个智能提示体验非常好了!

     

    展开全文
  • 因为我安装的是最新版的vscode(1.44.2),貌似安装插件之后是自动激活的, 点击安装,安装成功之后: 安装python插件: 同样在左边搜索“python”插件,然后安装,接下来运行代码: 如果你...

    真香警告!感觉这篇博客流程下来,我从一个pycharm小迷弟变成了vscode小迷弟!vscode真的非常方便,其实主要是因为它的轻量级,运行速度快,有的时候使用pycharm更换python解释器要等很久,但是vscode就是一瞬间的事情~

    转载请标明出处:
    https://blog.csdn.net/weixin_43141320/article/details/105943590

    vscode常用快捷键:
    https://www.cnblogs.com/schut/p/10461840.html

    安装插件:不同文件生成不同的图标

    在没有安装这个插件之前,看看图标:
    在这里插入图片描述

    下面安装这个插件:

    在这里插入图片描述

    在左边的一栏中点击插件安装的选项,然后输入vscode icon ,然后点击第一个:
    在这里插入图片描述

    因为我安装的是最新版的vscode(1.44.2),貌似安装插件之后是自动激活的,
    点击安装,安装成功之后:
    在这里插入图片描述

    安装python插件:

    同样在左边搜索“python”插件,然后安装,接下来运行代码:
    如果你习惯于使用cmd,可以点击左下角的加号,然后就会新增一个shell,即这里的cmd
    在这里插入图片描述

    点击cmd之后,如果你的电脑之前安装了anaconda,而且创建了若干个虚拟环境,你可以激活或者关闭指定的虚拟环境,打开cmd shell之后他会默认到主环境里找python解释器运行python代码,但是我习惯使用我的名为py3.7的虚拟环境:
    在这里插入图片描述

    然后直接点击右上角的运行标志可以直接运行:
    在这里插入图片描述

    配置vscode

    点击左上角【文件】,点击【首选项】,点击【设置】,出现这样的界面:
    在这里插入图片描述

    这些配置实质上是用json文件形式编码的,我们可以点击左上角的这个图标打开json文件:
    在这里插入图片描述

    在这里插入图片描述

    比如这里的17指的是我的代码字体大小为17,可以直接从这里修改。
    如果我希望每一次它打开的命令行默认是cmd而不是powershell如何操作呢?
    在搜索栏上面输入terminal.integrated
    在这里插入图片描述

    往下翻找到shell.windows:
    在这里插入图片描述

    这里显示它默认打开的是powershell,然后打开settings.json,输入:

    "terminal.integrated.shell.windows"

    他会自动匹配出来:

    C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe

    然后我们将它修改成:

    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",

    然后保存即可。然后前面讲到了打开cmd默认打开的是系统主环境下的python解释器,我现在想将其修改成我习惯的虚拟环境下的python解释器如何实现呢?同样,在json文件中输入:

    "python.pythonPath": "python"

    其实你输入前半部分的“键”,他就会自动出现后面的内容,然后发现它所对应的是“python”,因为我们当初安装python的时候将系统主环境里的解释器设置了环境变量,这里直接显示的是python,意思是直接使用环境变量里的python解释器。如果更改这一默认配置的话,可以将右边的“python”改成:E:\\python_environment\\py3.7\\python.exe,这个路径是我的虚拟环境的python解释器所在的路径(注意双斜杠)。然后保存即可,今后运行python代码就不会默认使用主环境下的python解释器,而是指定环境下的python解释器。

    配置自动保存

    在json 文件下输入:"files.autoSave"他就会自动出现后半段,然后改成:"files.autoSave":"afterDelay"即可自动保存,当然不用每一次都先打开json文件,使用本例来说,可以使用快捷键ctrl+shift+p然后在上面输入autosave然后点击下面出现的自动保存即可,然后检查一遍,打开json文件可以发现它多了一行关于自动保存的键值对。
    有关更多“files.autoSave”的值的说明参见这里:
    https://code.visualstudio.com/docs/editor/codebasics#_save-auto-save

    配置pydesigner、pyqt5:

    上面配置了这么多其实已经很完备了,但是怎么能够少了拖拽控件的配置呢?操作方式如下:
    首先安装pyqt integration:
    在这里插入图片描述

    然后通过前面介绍的方式打开设置,然后在上面搜索栏中输入:

    pyqt

    需要配置的有三个:
    在这里插入图片描述

    首先配置pyuic5,这需要找到你的pyuic5.exe可执行文件所在的位置,我的在这里:

    D:\\Program Files\\Anaconda3\\envs\\py3.7\\Scripts\\pyuic5.exe

    可以去你的Scripts文件夹下寻找,找到之后将它的绝对路劲copy过去,注意如果你直接将路径copy在上面截图的地方,那么要用单斜杠。我这个直接从json文件下copy过来的,所以是双斜杠。

    第二个配置其实是你从.ui文件生成.py文件的文件名和位置,可以根据自己的需要配置。

    第三个配置是你的pyqtdesigner所在的位置,我的绝对路径是:

    D:\\Program Files\\Anaconda3\\envs\\py3.7\\Lib\\site-packages\\pyqt5_tools\\Qt\\bin\\designer.exe

    可以参考我的路径去寻找。这些配置完成保存之后,打开json文件会发现在json文件中也相应的更新了配置,所以如果你想直接在json文件中配置也是可以的,但是要将路径的单斜杠换成双斜杠。

    这三个配置好了之后,找到任意一个文件右键,看到最后四行:
    在这里插入图片描述

    他们的含义分别是:
    创建一个新窗口,预览,编辑,编译产生py文件
    显然最后一个编译要求你的文件至少是.ui文件。
    将我的1.ui文件编译之后,成功生成了.py文件:
    在这里插入图片描述

    如果嫌弃前面的“Ui_”,可以通过上面提到的方式将前面的"Ui_"去掉,改成如下:

    在这里插入图片描述

    在这里插入图片描述

    看看多和谐~

    kite插件的安装

    常用python的小伙伴可能听说过kite,“真香”,直接上kite官网下载这个免费的针对python量身定制的使用机器学习设计的自动补全超级神器,然后在vscode的左边直接搜索kite插件安装就可以使用了,它可以按照使用者的习惯自动补全,还可以非常方便地查看某个函数的使用文档。比如我想导入numpy库:
    在这里插入图片描述

    看看Numpy的使用:将光标停在numpy那里,然后按ctrl+shift+p点击
    kite:Docs At Cursor
    在这里插入图片描述

    在这里插入图片描述

    看右边~
    就问你香不香,简直好用得不能不能了~

    关于kite的使用参见这里:
    https://help.kite.com/category/46-vs-code-integration
    接下来,开启你开挂的python之路吧~

    最后分别附上在vscode和sublime打开kite之后会出现的kite_tutorial.py文件:
    vscode(热键:ctrl+space(查看推荐), ctrl+shift+space(查看函数的参数使用方法),
    Hover your mouse over “dumps” and then click “Docs”.
    Or put your cursor over “dumps”, press ctrl+shift+p, and run the command
    “Kite: Docs At Cursor”.
    json.dumps):

    # Welcome to...
    #
    #         `hmy+.               ://:
    #        .mMMMMMNho:`          NMMm
    #       :NMMMMMMMMMMMds/.`     NMMm            :ss:
    #      +NMMMMMMMMMMMMMMMMmy+   NMMm           -MMMM-   ---
    #    `oMMMMMMMMMMMMMMMMMMMMo   NMMm            /ss/   :MMM+
    #   `yMMMMMMMMNshmNMMMMMMMN`   NMMm                   /MMM+
    #  .dMMMMMMMMm/hmhssydmMMM+    NMMm    `/yhhy. shhy ohmMMMmhhhh.  ./ydmmmdho-
    #  omMMMMMMMd/mMMMMMmhsosy`    NMMm  .omMMmo.  mMMN odmMMMmdddd. omMNdsoshNMNy`
    #   .+dMMMMy/mMMMMMMMMMMm-     NMMm-yNMMh/`    mMMN   /MMM+     sMMN:`   `:NMMy
    #     `-ymo/NMMMMMMMMMMMd      NMMMNMMN/       mMMN   :MMM+     MMMNdddddddNMMN
    #        ``hMMMMMMMMMMMM:      NMMm+mMMNs.     mMMN   :MMM+     MMMh//:
    #          `:yNMMMMMMMMh       NMMm `/dMMNy-   mMMN   :MMM+  `. sMMNo`    `-:
    #             .+mMMMMMM-       NMMm   `/dMMNy- mMMN   .MMMNddNN/ +NMMNdhydNNMs
    #               `:yMMMy        yhhs     `/hhhh shhs    :ymmmdho:  `/sdmmmmhs/`
    #                  `om.
    
    
    """ Kite is your Python programming copilot. Kite will try to show you the
        right information at the right time as you code to prevent you from context
        switching out of your current line of thought.
    
        This tutorial will teach you how to use all of Kite's core features. You
        should be able to learn everything in 5 minutes.
    
        If you get stuck at any point, please email feedback@kite.com and we'll
        help you debug.
    """
    
    
    
    
    """ PART 0: BEFORE WE START ====================================================
    
        Kite's VS Code extension will by default try to start the Kite backend when
        the editor first starts. You can change this behavior by opening settings,
        searching for "Kite:", and changing "Kite: Start Kite Engine On Startup".
    
        Look for the 𝕜𝕚𝕥𝕖 indiciator in the bottom right corner of VS Code's status
        bar — It will tell you if Kite is ready and working. If the indicator reads
        "not running", then you'll have to start the Kite Engine manually before
        proceeding with the rest of this tutorial.
    """
    
    
    
    
    """ PART 1: CODE COMPLETIONS ===================================================
    
        Kite analyzes your code and uses machine learning to show you completions
        for what you're going to type next.
    
        If you have your editor configured to show autocompletions, then Kite will
        show you completions automatically as you type.
    
        If you don't have autocompletions on, you can press ctrl+space to request
        completions at any time.
    
        You can toggle autocompletions in the editor settings by changing
        "Editor: Suggest On Trigger Characters".
    
        Look for Kite's "⟠" symbol on the right-hand side to see which completions
        are coming from Kite.
    """
    
    
    # 1a. Name completions
    #
    # Kite can suggest names of symbols to use, such as names of packages or names
    # of variables in scope.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of the line marked with "<--".
    # • Type "s" and select the completion for "json". (The rest of this tutorial
    #   depends on you doing so!)
    # • Remember to press ctrl+space if autocompletions aren't on.
    
    import j  # <--
    
    
    # 1b. Attribute completions
    #
    # Type a "." after a name and Kite will show you the attributes available.
    
    # TRY IT
    # ------
    # • Put your cursor at the end line of the line marked with "<--".
    # • Type "." and select the completion for "dumps".
    # • Remember to press ctrl+space if autocompletions aren't on.
    
    json  # <--
    
    
    # 1c. Snippets
    #
    # Kite uses VS Code's native snippets functionality to help you complete
    # function calls quicker. Kite's snippets will have placeholders displayed like
    # <this>. Placeholders will be automatically highlighted so that you can edit
    # them easily. You can jump between placeholders by pressing the tab key. Kite
    # enables snippets by default and you can turn them on/off by changing Kite's
    # "Enable Snippets" setting.
    
    # TRY IT
    # ------
    # • Ensure that Kite's "Enable Snippets" setting is enabled.
    # • Put your cursor at the end of the line marked with "<--".
    # • Type "m", and Kite will suggest calling "dumps(<obj>, ensure_ascii=<bool>)".
    # • Use Kite's completions and the tab key to fill out the function call. The
    #   correct call should be "json.dumps(obj, ensure_ascii=ensure_ascii)".
    # • Remember to press ctrl+space if autocompletions aren't on.
    
    obj = {'foo': 'bar', 'baz': 'qux'}
    ensure_ascii = True
    output = json.du  # <--
    
    
    # 1d. Code completions on demand
    #
    # Remember that you can use a keyboard shortcut at any time to request code
    # completions.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of the line marked with "<--".
    # • Press ctrl+space to request code completions to see the attributes in the
    #   json module.
    
    json.  # <--
    
    
    
    
    """ PART 2: FUNCTION ASSIST ====================================================
    
        Kite can also show you how to use a function as you're calling it in your
        code.
    
        If you have your editor configured to show parameter info automatically,
        then Kite will show you this information automatically as you're coding
        when it detects that your cursor is inside a function call.
    
        You can prevent this UI from being shown automatically in the editor
        preferences by changing "Editor > Parameter Hints".
    
        You can manually request function assist at any time by pressing
        ctrl+shift+space. However, your cursor must be inside a function call for
        the UI to appear.
    
        You can hide the function assist UI by pressing escape (or shift+escape if
        you are using the Vim extension).
    """
    
    
    # 2a. Conflicting extensions
    #
    # If you are using Microsoft's Python extension, Kite will not be able to help
    # you call functions, even when the Microsoft extension has no information to
    # show you. Unfortunately there is no workaround for this at the moment.
    
    
    # 2b. Function signatures
    #
    # When you're calling a function, Kite will show you the function's signature
    # to help you remember what arguments you need to pass in.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of line marked with "<--".
    # • Type "(" to start the function call, and Kite will show you how to call
    #   json.dumps.
    # • Remember to press ctrl+shift+space after typing "(" if you've disabled
    #   function assist from happening automatically.
    
    json.dumps  # <--
    
    
    # 2c. Learning from your own code
    #
    # Kite will also show you signatures for functions that you have defined in
    # your own code.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of the line marked with "<--".
    # • Type "(" to get assistance for your locally defined pretty_print function.
    # • Remember to press ctrl+shift+space after typing "(" if you've disabled
    #   function assist from happening automatically.
    
    def pretty_print(obj, indent=2):
        print(json.dumps(obj, indent=indent))
    
    pretty_print(obj, indent=4)
    
    pretty_print  # <--
    
    
    # 2d. Function assist on demand
    #
    # Remember that you can use a keyboard shortcut at any time to view information
    # about a function.
    
    # TRY IT
    # ------
    # • Put your cursor between the "(" and ")" on the line marked with "<--".
    # • Press ctrl+shift+space to access function assist.
    
    pretty_print()  # <--
    
    
    
    
    """ PART 3: INSTANT DOCUMENTATION ==============================================
    
        Kite can also show you documentation for the symbols in your code.
    
        If the "Editor > Hover" setting is enabled, then you can access
        documentation by hovering your mouse over a symbol and then clicking on
        Kite's "Docs" link.
    
        Otherwise, you can also position your cursor over a symbol, and run the
        "Kite: Docs At Cursor" command to access documentation.
    """
    
    
    # TRY IT
    # ------
    # • Hover your mouse over "dumps" and then click "Docs".
    # • Or put your cursor over "dumps", press ctrl+shift+p, and run the command
    #   "Kite: Docs At Cursor".
    
    json.dumps
    
    
    
    
    """ That's it!
    
        Now you know how to use Kite's core features to boost your productivity as
        you code. You can access this tutorial at any time by running the command
        "Kite: Tutorial" from the command palette.
    
        You can learn more about Kite's VS Code extension at its GitHub repo:
    
        https://github.com/kiteco/vscode-plugin
    
    
        ____________________________________________________________________________
    
        Kite is under active development. You can expect its features to become
        smarter and more featured over time.
    
        We love hearing you! Feel free to email feedback@kite.com at any time with
        questions, suggestions, or general feedback.
    """
    
    

    sublime:

    # Welcome to...
    #
    #         `hmy+.               ://:
    #        .mMMMMMNho:`          NMMm
    #       :NMMMMMMMMMMMds/.`     NMMm            :ss:
    #      +NMMMMMMMMMMMMMMMMmy+   NMMm           -MMMM-   ---
    #    `oMMMMMMMMMMMMMMMMMMMMo   NMMm            /ss/   :MMM+
    #   `yMMMMMMMMNshmNMMMMMMMN`   NMMm                   /MMM+
    #  .dMMMMMMMMm/hmhssydmMMM+    NMMm    `/yhhy. shhy ohmMMMmhhhh.  ./ydmmmdho-
    #  omMMMMMMMd/mMMMMMmhsosy`    NMMm  .omMMmo.  mMMN odmMMMmdddd. omMNdsoshNMNy`
    #   .+dMMMMy/mMMMMMMMMMMm-     NMMm-yNMMh/`    mMMN   /MMM+     sMMN:`   `:NMMy
    #     `-ymo/NMMMMMMMMMMMd      NMMMNMMN/       mMMN   :MMM+     MMMNdddddddNMMN
    #        ``hMMMMMMMMMMMM:      NMMm+mMMNs.     mMMN   :MMM+     MMMh//:
    #          `:yNMMMMMMMMh       NMMm `/dMMNy-   mMMN   :MMM+  `. sMMNo`    `-:
    #             .+mMMMMMM-       NMMm   `/dMMNy- mMMN   .MMMNddNN/ +NMMNdhydNNMs
    #               `:yMMMy        yhhs     `/hhhh shhs    :ymmmdho:  `/sdmmmmhs/`
    #                  `om.
    
    
    """ Kite is your Python programming copilot. Kite will try to show you the
        right information at the right time as you code to prevent you from context
        switching out of your current line of thought.
    
        This tutorial will teach you how to use all of Kite's core features. You
        should be able to learn everything in 5 minutes.
    
        If you get stuck at any point, please email feedback@kite.com and we'll
        help you debug.
    """
    
    
    
    
    """ PART 0: BEFORE WE START ====================================================
    
        Kite's Sublime package will by default try to start the Kite backend when
        the editor first starts. You can change this behavior by opening the Kite
        package's settings, and changing "start_kite_engine_on_startup".
    
        Look for the 𝕜𝕚𝕥𝕖 symbol in the bottom left corner of Sublime's status
        bar — It will tell you if Kite is ready and working. If the indicator reads
        "Connection error", then you'll have to start the Kite Engine manually
        before proceeding with the rest of this tutorial.
    """
    
    
    
    
    """ PART 1: CODE COMPLETIONS ===================================================
    
        Kite analyzes your code and uses machine learning to show you completions
        for what you're going to type next.
    
        If you have your editor configured to show autocompletions, then Kite will
        show you completions automatically as you type.
    
        If you don't have autocompletions on, you can press ctrl+space to request
        completions at any time.
    
        You can toggle autocompletions by changing Sublime's native "auto_complete"
        setting to true or false.
    
        Look for Kite's "⟠" symbol on the right-hand side to see which completions
        are coming from Kite.
    """
    
    
    # 1a. Conflicting packages
    #
    # If you have other 3rd party packages which provide completions, your
    # experience with Kite may not be ideal because these packages may conflict
    # with Kite's behavior. We suggest temporarily disabling completions from other
    # packages while you try out Kite. You won't be disappointed!
    
    
    # 1b. Name completions
    #
    # Kite can suggest names of symbols to use, such as names of packages or names
    # of variables in scope.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of the line marked with "<--".
    # • Type "s" and select the completion for "json". (The rest of this tutorial
    #   depends on you doing so!)
    # • Remember to press ctrl+space if autocompletions aren't on.
    
    import j  # <--
    
    
    # 1c. Attribute completions
    #
    # Type a "." after a name and Kite will show you the attributes available.
    
    # TRY IT
    # ------
    # • Put your cursor at the end line of the line marked with "<--".
    # • Type "." and select the completion for "dumps".
    # • Remember to press ctrl+space if autocompletions aren't on.
    
    json  # <--
    
    
    # 1d. Snippets
    #
    # Kite uses Sublime's native snippets functionality to help you complete
    # function calls quicker. Kite's snippets will have placeholders displayed like
    # <this>. Placeholders will be automatically highlighted so that you can edit
    # them easily. You can jump between placeholders by pressing the tab key. Kite
    # enables snippets by default and you can turn them on/off by changing Kite's
    # "enable_snippets" setting.
    
    # TRY IT
    # ------
    # • Ensure that Kite's "enable_snippets" setting is set to true.
    # • Put your cursor at the end of the line marked with "<--".
    # • Type "m", and Kite will suggest calling "dumps(<obj>, ensure_ascii=<bool>)".
    # • Use Kite's completions and the tab key to fill out the function call. The
    #   correct call should be "json.dumps(obj, ensure_ascii=ensure_ascii)".
    # • Remember to press ctrl+space if autocompletions aren't on.
    
    obj = {'foo': 'bar', 'baz': 'qux'}
    ensure_ascii = True
    output = json.du  # <--
    
    
    # 1e. Code completions on demand
    #
    # Remember that you can use a keyboard shortcut at any time to request code
    # completions.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of the line marked with "<--".
    # • Press ctrl+space to request code completions to see the attributes in the
    #   json module.
    
    json.  # <--
    
    
    
    
    """ PART 2: FUNCTION ASSIST ====================================================
    
        Kite can also show you how to use a function as you're calling it in your
        code.
    
        By default, Kite will show you this information automatically as you're
        coding when it detects that your cursor is inside a function call.
    
        You can prevent this UI from being shown automatically by changing Kite's
        "show_function_signatures" setting to false.
    
        You can manually request function assist at any time by pressing
        ctrl+alt+u. However, your cursor must be inside a function call for the UI
        to appear.
    
        You can hide the function assist UI by pressing escape.
    """
    
    
    # 2a. Function signatures and more
    #
    # When you're calling a function, Kite will show you the function's signature
    # to help you remember what arguments you need to pass in. It may also show you
    # examples of how other developers use the function and the keyword arguments
    # you can use.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of line marked with "<--".
    # • Type "(" to start the function call, and Kite will show you how to call
    #   json.dumps.
    # • Remember to press ctrl+alt+u after typing "(" if you've disabled function
    #   assist from happening automatically.
    #
    # • Within the UI, click on the "Examples" link to see how other developers use
    #   the function.
    # • You can hide this information by clicking on the "Hide" link.
    
    json.dumps  # <--
    
    
    # 2b. Learning from your own code
    #
    # Kite will also show you signatures, example usages, and keyword arguments for
    # functions that you have defined in your own code.
    
    # TRY IT
    # ------
    # • Put your cursor at the end of the line marked with "<--".
    # • Type "(" to get assistance for your locally defined pretty_print function.
    # • Remember to press ctrl+alt+u after typing "(" if you've disabled function
    #   assist from happening automatically.
    
    def pretty_print(obj, indent=2):
        print(json.dumps(obj, indent=indent))
    
    pretty_print(obj, indent=4)
    
    pretty_print  # <--
    
    
    # 2c. Function assist on demand
    #
    # Remember that you can use a keyboard shortcut at any time to view information
    # about a function.
    
    # TRY IT
    # ------
    # • Put your cursor between the "(" and ")" on the line marked with "<--".
    # • Press ctrl+alt+u to access function assist.
    
    pretty_print()  # <--
    
    
    
    """ PART 3: INSTANT DOCUMENTATION ==============================================
    
        Kite can also show you documentation for the symbols in your code.
    
        If Kite's "show_hover" setting is true, then you can access documentation
        by hovering your mouse over a symbol and then clicking the "Docs" link.
    
        Otherwise, you can also position your cursor over a symbol, and then press
        ctrl+alt+d to access documentation.
    """
    
    
    # TRY IT
    # ------
    # • Hover your mouse over "dumps" and then click "Docs".
    # • Or put your cursor over "dumps" and then press ctrl+alt+d.
    
    json.dumps
    
    
    
    
    """ That's it!
    
        Now you know how to use Kite's core features to boost your productivity as
        you code. You can access this tutorial at any time by running the command
        "Kite: Tutorial" from the command palette.
    
        You can learn more about Kite's Sublime package at its GitHub repo:
    
        https://github.com/kiteco/KiteSublime
    
    
        ____________________________________________________________________________
    
        Kite is under active development. You can expect its features to become
        smarter and more featured over time.
    
        We love hearing you! Feel free to email feedback@kite.com at any time with
        questions, suggestions, or general feedback.
    """
    
    
    展开全文
  • 适用于Visual Studio Code的Kite自动完成插件 Kite是一款由AI驱动的编程助手,可帮助您在Visual Studio Code中更快地编写代码。 通过保存击键并在正确的时间向您显示正确的信息,Kite可以帮助您更快地编写代码。 ...
  • vscode插件安装失败的解决方案

    千次阅读 2019-10-06 19:20:54
    vscode中点击对应插件的install按钮安装,安装失败,软件提示手动安装(manually install)。 手动下载vsix安装包,然后点击install from VSIX...,选择vsix安装包进行安装,显示Error: EACCES: permission denied,...

    在vscode中点击对应插件的install按钮安装,安装失败,软件提示手动安装(manually install)。

    手动下载vsix安装包,然后点击install from VSIX...,选择vsix安装包进行安装,显示Error: EACCES: permission denied, mkdir ...

    这种情况一般来说是因为权限问题,使得安装过程无法对一些文件进行操作。

    通过查阅,在github上的vscode项目找到了对应的解决方案(参考:https://github.com/Microsoft/vscode/issues/48656#issuecomment-384834353)。如下:

    sudo chown -R myuser:myuser ~
    sudo chmod -R 700 ~

    其中,myuser改为你的用户名称。

    chown -R 用户名:组名  ~:第一句命令为改变目录拥有者,~为当前目录

    sudo chmod -R 700 ~ :修改目录的权限,700表示rwx --- ---,即当前用户可读可写可执行,组用户和其他用户不可读不可写不可执行

    执行这两条命令后即可安装成功。

     

    转载于:https://www.cnblogs.com/jisongxie/p/10053591.html

    展开全文
  • 5、远程连接服务器 下载相关插件 remote ssh(wsl是可以连接windowswsl子系统) 支持ssh连接远程服务器,也可wsl连接虚拟机,也可以连接docker打开,例如下面: 6、代码文件快捷打开vscode ide 在对应要打开的...

    1、指定python解释器

    前提先在插件中心安装python插件
    快捷:crtl+shift+p
    调用Python:Select Interpreter命令
    在这里插入图片描述
    在这里插入图片描述

    也可以点击左下方选择,运行程序terminal可以看到指定python环境

    在这里插入图片描述

    2、安装code runner、jupyter、kite、mysql插件

    在这里插入图片描述
    kite代码补全;安装号右下角显示
    在这里插入图片描述
    在这里插入图片描述
    mysql安装mysql和mysql syntax
    在这里插入图片描述
    在这里插入图片描述

    code runner 指定默认python环境

    参考:https://blog.csdn.net/qq_32224299/article/details/88421101

    指定上自己的解释器路径即可
    在这里插入图片描述
    在这里插入图片描述
    然后右键运行有run code选项
    在这里插入图片描述

    jupyter 指定默认python环境

    jupyter安装后重启下软件

    在这里插入图片描述

    3、livecode for python

    变量和打印可以实时看到
    在这里插入图片描述

    其他插件参考:https://www.jb51.net/article/197220.htm

    4、命令行快捷打开ide

    对应需要打开文件命令窗口使用

    code .
    

    5、远程连接服务器

    下载相关插件
    remote ssh(wsl是可以连接windowswsl子系统)
    在这里插入图片描述
    在这里插入图片描述
    支持ssh连接远程服务器,也可wsl连接虚拟机,也可以连接docker打开,例如下面:
    在这里插入图片描述

    6、代码文件快捷打开vscode ide

    在对应要打开的文件夹下打开终端,输入code . 即可

    展开全文
  • VScode必备插件

    千次阅读 2020-10-23 15:11:03
    VScode 插件神器 VScode 之所以受到追捧,正是因为 VScode 具有丰富插件功能并且安装非常简单。下面介绍一下这些非常实用的插件,有兴趣探索一下,一定会有所收获。 1、Chinese(Simplified)Language Pack for ...
  • 1.kite是什么? kite是自动补全工具 2、如何安装kite? 2.1、linux下安装kite 前提:1、系统为x86架构;2、切换用户,不能使用root用户 执行命令: bash -c "(wget -q -O - ...2.2 vscode安装kite ...
  • 高效的python编程神器——kite

    万次阅读 2019-08-15 16:18:51
    “I really love the line-of-code completions in the new kite.com”,Python之父Guido van Rossum这样评价这款工具。这是一款基于人工智能的Python编码自动补全工具,起初,我对这款工具并不看好,直到我使用一段...
  • vscode的颜值很高,,,所以对它一直有执念。。。 但是相对于pycharm总有一点缺陷: 1. 代码错误提示不稳健,总是有什么 奇奇怪怪的错误,例如包里没有什么模块啊之类的,但是代码实际上没错。 2. 代码自动补全不...
  • 推荐VScode十大实用插件

    千次阅读 多人点赞 2020-12-19 13:52:00
    本文来源于:老袁聊前端宇宙最好用的编译器:Vscode,推荐以下十大使用插件!1.代码智能提示Kite AI Code AutoCompleteKite 支持js与python的多行补全...
  • "workbench.editorAssociations": { "*.ipynb": "jupyter-notebook" }, "kite.showWelcomeNotificationOnStartup": false, //需要安装kite,show the Kite welcome notification on startup. "python....
  • 1. VScode 中 arduino插件版本问题 selecting board时出现 no results found 错误 原因:插件本身有问题 解决方法: 降级v0.4.5 通过GitHub 下载低版本程序包vsix,离线安装。 2.未定义标识符 "pinMode...
  • VScode升级后连接不上 1.打开新建终端看看输出的错误问题 2.提示的意思大概是由于升级了导致不匹配,此时删掉旧的,重新连接时,它会下载新的连接文件 3.再次连接就没问题了
  • <p>vscode里面有什么办法让ipynb文件自动补齐(试过了intellicode和kiteAutoComplete插件)这样写代码效率高一些</p>
  • 不想在本地搭建环境,直接在远程服务器上进行代码编写。可以利用VS code的扩展插件 remote-browser 来实现。 remote-browser 依赖 ssh2-sftp-client来连接远程服务器。 一、安装 remote-browser ...
  • VScode插件

    2019-10-08 20:38:23
    VScode插件——安装: 1、Beautify hookyqr.beautify 2、Bracket Pair Colorizer 3、Chinese (Simplified) Language Pack for Visual Studio Code 4、Code Spell Checker 5、ESLint 6、filesize 7、indent-...
  • 刚学Python的同学可能会觉得每次写Python的时候都得打开Cmd有点烦躁,直接上手Pycharm的...——答案是VSCode.诞生于2015年的VSCode编辑器,现在可以说是目前最强的编辑器之一,在微软的背书下,比各位历史悠久的老...
  • 原因: 我的这个情况是因为使用 flutter create 创建的项目,默认使用的是gradle 4.10.2-all,如果本机没有这个版本,就要重新下载,但因为要翻墙,所以下载不了。 解决方法: 到...
  • Vscode 从去年开始,在他的Python扩展里,开始完整的支持Jupyter Notebook, 经过几个月的改进和完善,目前已经处于一个非常不错的情况。 本文支持的环境,vscode Version 1.41 ,python extension Version 2020.1.0...
  • 1. 安装vscode 的 python扩展 ​2. 创建虚拟环境 3.需要显示代码块功能的同学,可以安装Python Snippets。 4. 运行代码 5. 使用debug 功能 ​6. 生成文档说明: 7 .pytest简单操作 1. 安装vscode 的 python...
  • 安装vscode 下载地址:https://code.visualstudio.com/ 安装远程开发插件 插件的名称:Remote Development 本地安装git或者open-ssh 可以通过直接安装git,之后直接使用vscode插件,但是我并没有成功,git安装地址:...
  • "xmlTools.enableXmlTreeViewCursorSync": true, // 建议的语言列表 "css.enabledLanguages": [ "html", "django-html", "css", "java", ], // ------------------ auto-close-tag ------------------ // vscode和...
  • python代码自动补全利器----Kite介绍安装使用教程

    万次阅读 多人点赞 2019-11-04 19:25:36
    目录Kite介绍Kite安装总结 介绍一款针对python代码自动补全的工具 —— Kite ,不需额外的环境配置,more importantly是免费的哦~~对于经常使用Python的朋友们,非常推荐一用,撸码效率大大提升。 Kite is a plugin...
  • // vscode默认启用了根据文件类型自动设置tabsize的选项 不檢查縮進,保存后統一按設置項來設置 "editor.detectIndentation": false, // 重新设定tabsize 代码缩进修改成4个空格 "editor.tabSize": 2, // #每次...
  • VSCode笔记(一):Python和Anaconda前言问题一: win10的PowerShell 如何使用Anaconda解决方案问题二:如何给VSCode装实用插件解决方案推荐插件问题三:如何用离线下载包(.vsix)给VSCode装插解决方案问题四: ...
  • 工欲善其事必先利其器,开发前先把所以提升效率的利器搭好会让今后慢慢的编程长路舒服很多,我本来一直用pycharm,后来发现vscode貌似确实会好很多。。。就慢慢转过来了,下面介绍一些我在机器学习编程时经常会用到...
  • vscode 自用插件分享 名称 简述 One Dark Pro 主题皮肤 Material Icon Theme 文件图标皮肤 Chinese (Simplified) Language Pack for Visual Studio Code VSCode的汉化包 Trailing Spaces 提示你多余的...
  • kit pro 安装可选择不安装任何插件,后面可以配置ide插件安装 安装完成后,可选择系统托盘图标 点击setting,plugin中可选择ide安装对应的插件 kite pro支持多种语言
  • 读过我的文章的小伙伴应该会记得,之前我已分享过 VScode 的文章,收到了上千个赞、6000+的收藏,能够感受到大家对 VScode 的喜爱,链接分享如下: 基础版:超强大!没有这 24 款插件的 VScode 是没有灵魂的! 工具...

空空如也

空空如也

1 2 3 4 5 ... 10
收藏数 186
精华内容 74
关键字:

kitevscode