Visual studio code - Intellisense auto complete behaviour

后端 未结 2 1332
太阳男子
太阳男子 2021-02-10 15:01

I\'m pretty new to Visual studio code. I am using Visual studio code for AngularJS application development. As I am from a .NET development background, I\'m much fond of intelli

相关标签:
2条回答
  • 2021-02-10 15:06

    VSCode 1.51 (Oct. 2020) will make those choices more visible with:

    Status bar for suggestions

    The suggestions control can now also show its own status bar at the bottom of the window.
    Enable it using the editor.suggestStatusBar.enable setting.
    It makes toggling details simpler, and shows if a completion supports inserting, replacing, or both.

    Theme: GitHub Light, Font: FiraCode

    In the sample above, selecting "Insert" results in Math.floorceil and selecting "Replace" results in Math.floor.

    The new editor.suggest.insertMode setting allows you to configure whether you prefer insert or replace.
    When a suggestion supports both, your preference will be the default.

    Note that you also have the setting editor.tabCompletion to force "replace" to be the default, instead of "insert".

    0 讨论(0)
  • 2021-02-10 15:11

    I posted the same query in VScode git hub issues forum. I got the following reply.

    You can add the snippet below to your keyboard shortcut configuration to the VS Code to accept a suggestion and insert the dot when pressing .

    { "key": ".", "command": "^acceptSelectedSuggestion", "when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey && editorLangId == 'javascript'" }

    This worked.

    0 讨论(0)
提交回复
热议问题