简体   繁体   中英

Intellij like inline parameter hints in vs code

IntelliJ shows method parameter hints on usage - How to disable it

I would like to see inline parameter hints in VS Code (for golang) --as described in image of above referred post. Please suggest if this can be achieved with any extension / otherwise. I tried "IntelliJ IDEA Keybindings" extension but it dont seem to be supported yet.

Any help is highly appreciated. Thanks!

Refactoring

Linux, Windows  macOS   Feature Supported
f5  f5  Copy    N/A
f6  f6  Move    N/A
alt+delete  cmd+delete  Safe Delete N/A
shift+f6    shift+f6    Rename  ✅
shift+f6    shift+f6    Rename (File)   ✅
ctrl+f6 cmd+f6  Change Signature    N/A
ctrl+alt+n  cmd+alt+n   Inline  N/A
ctrl+alt+m  cmd+alt+m   Extract Method  ✅
ctrl+alt+v  cmd+alt+v   Extract Variable    ✅
ctrl+alt+f  cmd+alt+f   Extract Field   N/A
ctrl+alt+c  cmd+alt+c   Extract Constant    N/A
ctrl+alt+p  cmd+alt+p   Extract Parameter   N/A

vscode issue 92297 might land in VSCode 1.62 (oct. 2021):

Replace underline in Parameter Hints with color

Instead of an underbar below the current parameter, using a color would be a much better choice

Examples:

https://user-images.githubusercontent.com/35271042/137919282-36331de2-44e1-47bb-865b-f9501fb98c5d.png

Or (dark theme)

https://user-images.githubusercontent.com/35271042/137919069-8abb411e-9677-422e-ba6e-64a1f64d3f07.png

This will be closer to what you see in an IntelliJ IDE like webstorm:

webstorm -- https://user-images.githubusercontent.com/33468089/76261399-2d9c0600-625a-11ea-8b93-1cdfc227d35e.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM