Sublime Forum

C code hints and plugins

#1

Hello

I Just installed the sublime text.
I opened a folder with C and headers files.
After installing several plugins, I still can’t see code hints.
For example, when pointing on a define or struct I don’t see the value or structure members.
It just shows the define file name and number.
How can I set the environment to support it?
Also, can I see the function params name in code when calling to a function (in order to know which value was set for each function param)?

Thanks

0 Likes

#2

You may want to try LSP with LSP-clangd for code intelligence features.

0 Likes

#3

Is there a way to:
See permanent param names when calling to a function?
For example :
func1(param1:12, param2: true)

See the struct members when pointing on a struct variable?

Thanks

0 Likes

#4

Still the same answer. LSP with LSP-clangd

0 Likes

#5

I installed these plugins but I don’t see what I asked.
Do I need more configuration?

Thanks

0 Likes

#6

clang compiler may be needed and set-up and according to readme of LSP-clangd some projects need to be created for clangd to be able to parse sources.

Haven’t used clang myself though.

0 Likes

#7

I found that to see function params name, we need to set
show_inlay_hints to true in LSP settings.

1 Like