notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

'define', 'include' keyword missing in C/C++ autoCompletion files

Open
#10,016 4 comments 1 reaction 1 assignee View on GitHub

@donho is already working on this.

Since Feb 7, 2022.

known issue language-support
Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Description of the Issue

The keyword define (used as #define) and include (used as #include) in C/C++ files is missing from the 'autoCompletion/c.xml' and 'autoCompletion/cpp.xml' files. The keyword #define and #include is present; however, without # as an additionalWordChar in either file, typing #define never offers the autocomplete.

I've tried adding the additionalWordChar="#" but that doesn't seem to help. The simplest way may be to just add 'define' and 'include' themselves as keywords.

Steps to Reproduce the Issue
  1. Open Notepad++ select C or C++ as language from menu
  2. Ensure Settings => Preferences => Auto-Completion is enabled
  3. Type #define
  4. Notice #define is never offered as an autocomplete option.
Expected Behavior

#define is offered as an autocomplete option.

Actual Behavior

#define is never offered as an autocomplete option.

Debug Information

Notepad++ v8 (64-bit)
Build time : Jun 16 2021 - 01:08:30
Path : C:\usr\bin\npp64\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 1909
OS Build : 18363.1621
Current ANSI codepage : 1252
Plugins :

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.