Skip to content

[C/C++ extension] code auto-completion issues for local variables and function parameters #624

Closed
@prophett0527

Description

@prophett0527

static void test_function(int test_param)
{
int abc_test = test_param;
}

For this test code,
when "int abc_test = test" is entered, possible methods and definition in the entire project is listed, but the parameter "test_param" is NOT displayed.
However, when "int abc_test = test_p" is entered, the suggestion list is disappeared. At this point, if "ctrl + space" is pressed, "test_param" is listed as code-completion suggestion.

Local variables and function parameters are NOT listed as code-completion at first time. They are listed ONLY when no motheds and functions are matching with the input in the entire project.

If I remember correctly, Visual Studio is displaying local variables and methods and functions all-together at the same time.
Is is possible to list all variables and methods together at the same time in VSCode?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions