Skip to content

Extend 'Rename Symbol' feature to support renaming macrosΒ #6194

@programminghoch10

Description

@programminghoch10

Type: LanguageService

Describe the bug

  • OS and Version: Windows 10
  • VS Code Version: 1.49.1
  • C/C++ Extension Version: v1.01
  • Other extensions you installed (and if the issue persists after disabling them): PlatformIO, Does persist.
  • Does this issue involve using SSH remote to run the extension on a remote machine?: No

Project size is irrelevant, happens also in one file as seen below.

Steps to reproduce

#define TEST_CONSTANT "string"

void main() {
  std::cout << TEST_CONSTANT;
}
  1. Try to rename the TEST_CONSTANT using F2 (Rename Symbol).
  2. Notice it only renames usages, but not the define itself.

Expected behavior

It should also rename the constant itself.

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions