Sublime Forum

How to auto complete gtk+ functions in c with Sublime Text 3

#1

I use gtk library in c however sublime text 3 do not auto complete gtk functions like stdio functions. How to add these functions to auto complete list?

Edit: If I use a function in code, it auto completed in same code. However I want for all or selected gtk function even if it did not use.

0 Likes

#2

https://packagecontrol.io/packages/EasyClangComplete

0 Likes

#3

Thanks for your answer. I applied 1. and 2. step. But I do not understand step 3. What should I do?

0 Likes

#4

I tried create new file named “CMakeLists.txt”. And I wrote some text in this file. But it did not.

0 Likes

#5

What build system do you use? Make? If so, compile this program from source, and invoke bear make. This will generate your compilation database.

0 Likes

#6

I install that program. Bur where I run ‘bear make’. I run in source folder of that program. It created empty “CMakeLists.txt” file. File include only ‘[]’. After I tried same folder with C source code of my program, it give error and empty “CMakeLists.txt” file.

0 Likes