Vim: Multicursor/intellisense/autocomplete/snippets broken

Created on 16 Jun 2017  路  4Comments  路  Source: VSCodeVim/Vim

If you're getting very bad multicursor behavior, first check that it is only in files that have either word wrapped lines or folds. If so, the cause is this:

https://github.com/Microsoft/vscode/issues/28853

Snippets with multicursors have some issues everywhere.

kinbug statuduplicate

Most helpful comment

Multicursor is also not working for me.

Given the following snippet:

    "Insert Action Set": {
        "prefix": "action_set",
        "body": [
            "export const ${1:ACTION_NAME} = createActionType('${1:ACTION_NAME}', ${PREFIX});",
            "export const ${1:ACTION_NAME}_ERROR = createActionType('${1:ACTION_NAME}_ERROR', ${PREFIX});",
            "export const ${1:ACTION_NAME}_SUCCESS = createActionType('${1:ACTION_NAME}_SUCCESS', ${PREFIX});"
        ],
        "description": "Inserts a set of action, action_success, action_error blocks"
    }

Getting into INSERT MULTICURSOR mode produces unexpected behaviour.

Expected: when the snippet is first inserted, ACTION_NAME placeholders are selected. Typing should replace the selection.

Actual: when the snippet is first inserted, ACTION_NAME placeholders are selected, but typing does not replace the placeholder selection. Instead, whatever I type is appended to the selection. ctrl-backspace does, however, remove the selected text, as expected.

Is there a workaround to this that I'm missing?

All 4 comments

@Chillee Is there a workaround? Downgrade Visual Studio Code to version 1.12 will fix it?

Hello,

I'm still unable to use multicursor and apparently the issue https://github.com/Microsoft/vscode/issues/28853 was closed.

Multicursor is also not working for me.

Given the following snippet:

    "Insert Action Set": {
        "prefix": "action_set",
        "body": [
            "export const ${1:ACTION_NAME} = createActionType('${1:ACTION_NAME}', ${PREFIX});",
            "export const ${1:ACTION_NAME}_ERROR = createActionType('${1:ACTION_NAME}_ERROR', ${PREFIX});",
            "export const ${1:ACTION_NAME}_SUCCESS = createActionType('${1:ACTION_NAME}_SUCCESS', ${PREFIX});"
        ],
        "description": "Inserts a set of action, action_success, action_error blocks"
    }

Getting into INSERT MULTICURSOR mode produces unexpected behaviour.

Expected: when the snippet is first inserted, ACTION_NAME placeholders are selected. Typing should replace the selection.

Actual: when the snippet is first inserted, ACTION_NAME placeholders are selected, but typing does not replace the placeholder selection. Instead, whatever I type is appended to the selection. ctrl-backspace does, however, remove the selected text, as expected.

Is there a workaround to this that I'm missing?

Was this page helpful?
0 / 5 - 0 ratings