microsoft / microsoft/vscode-cpptools

Code compilation of angular bracket for STL data structures and similar data types

Open
#7,668 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Language Service
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Feature Request

In the current version of vscode, code compilation of data structures like "vector", "map" just places the name like vector map not like vector<cursor>, map<first cursor, second cursor> which is not the way most people write code in c++. When I asked questions about this problem, maintainer @sean-mcmanus told me that due to some other ways of writing those data structures ( for example: vector i = { 1 }; is a valid syntax ) they couldn't be able to provide the conventional code completion syntax. So, I suggested that give us an option ( something like "use angular bracket in data structure " : true/false ) to choose whether we want the conventional way of completion ( vector<cursor> ) or not ( vector ). He asked me if I could file a feature request so that others can place their vote about this problem. By upvoting this idea, we can get the attention of the developers and might have this feature.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked discussion and the existing completion behavior for STL data structures. Locate the completion implementation, settings, and related tests, then determine how an option could select angle-bracket insertion without breaking valid alternatives. Done means the behavior is configurable and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.