RamonUnch / GreenPad

Fork from roytam1 fork from original GreenPad
21 stars 0 forks source link

Autocomplete for C and C++ #141

Open DotNetTester opened 1 year ago

DotNetTester commented 1 year ago

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 commented 1 year ago

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 commented 9 months ago

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.