juanfranblanco / vscode-solidity

Visual Studio Code language support extension for Solidity smart contracts in Ethereum https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity
MIT License
885 stars 190 forks source link

How to get symbol information for sol files #147

Open pizzarob opened 5 years ago

pizzarob commented 5 years ago

I am wondering how we can get symbol information (Shift + Command + O) for .sol files. If you could point me in the right direction I'd be happy to submit a PR.

rocky commented 5 years ago

@pizza-r0b I don't understand what exactly you mean by "symbol information" and I don't see Shift + Command + O mentioned in https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf or the corresponding versions for MacOS or Linux. A like to a reference would be helpful.

That said, https://github.com/rocky/solc-vscode starts to add symbol table information from the solidity compiler. See https://www.youtube.com/watch?v=lhQ0gO9Jzx8 for a demo.

At least on mhy projects, but I'd venture to this is pretty much unviersally true, programming help is always welcome!

tonisives commented 2 years ago

It is a command that lets you search for all symbols like method names and fields.

"command": "workbench.action.showAllSymbols"

Screenshot 2021-12-28 at 10 25 57

Currently it doesn't show Solidity symbols.