Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete for C and C++ #141

Open
DotNetTester opened this issue Aug 4, 2023 · 2 comments
Open

Autocomplete for C and C++ #141

DotNetTester opened this issue Aug 4, 2023 · 2 comments

Comments

@DotNetTester
Copy link

DotNetTester commented Aug 4, 2023

GreenPad supports ancient versions of Windows. The older versions of Windows can only run versions of the Microsoft Visual C++ IDE that don't support autocomplete (intellisense). For example, Visual C++ 4.0 and 4.2 in Windows NT 3.51. I was wondering about a basic and lightweight autocomplete for C and C++ in GreenPad. I ask because this project specializes in ancient versions of Windows and coding.

A lightweight way to compile software in the GreenPad menus using the installed old Microsoft compilers would be useful extra in addition to the above but not that needed.

@RamonUnch
Copy link
Owner

Indeed this would be cool.
Not sure how to do this properly each programming language would require specific code. In c/c++, all headers would have to be parsed for structure's field auto completion and types would have to be tracked, so basically a c++parser would have to be implemented for this. This is more work than what should be in a lightweight text editor.
A very basic thing could be to autocomplete keywords only (that are listed in the .kwd files). but the interest would be minimal because keywords are usually short and easy to type.

For now you can start an external program with the Ctrl+G shortcut, I use cmd.exe /k cd "%D" to start the command prompt in the current file directory. you can configure which program will be started on Ctrl+G in the External Grep program field.

image

@DotNetTester
Copy link
Author

Autocomplete for C++ and C would be more useful than other languages. C++ and C were the main programming languages when Windows NT 3.51 was supported. The was also Visual Basic which was more popular than it is now.

The newest officially supported version on Windows NT 3.51 is Visual C++ 4.2. The newer Microsoft Visual C++ 6.0 compiler unofficially runs on Windows NT 3.51 but not the IDE. Autocomplete would be useful for that as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants