Coder Social home page Coder Social logo

php-parameter-hint's Introduction

PHP Parameter Hint for Visual Studio Code

VS Marketplace Version

php-parameter-hint screenshot

Inserts parameter hints(type, name or both) into function calls to easily understand the parameter role.

Settings

Name Description Default
phpParameterHint.enabled Enable PHP Parameter Hint true
phpParameterHint.margin Hints styling of margin CSS property 2
phpParameterHint.verticalPadding Top and bottom padding of the hints(px) 1
phpParameterHint.horizontalPadding Right and left padding of the hints(px) 4
phpParameterHint.fontWeight Hints styling of font-weight CSS property "400"
phpParameterHint.borderRadius Hints styling of border-radius CSS property in px 5
phpParameterHint.opacity Hints styling of opacity CSS property 0.4
phpParameterHint.fontStyle Hints styling of font-style CSS property "italic"
phpParameterHint.fontSize Hints styling of font size CSS property 12
phpParameterHint.onSave Create parameter hints on document save true
phpParameterHint.saveDelay Delay in ms for on document save run 250
phpParameterHint.onChange Create parameter hints on document change false
phpParameterHint.changeDelay Delay in ms for on document change run 100
phpParameterHint.textEditorChangeDelay Delay in ms for on active text editor change 250
phpParameterHint.php7 True if php version is 7.0+, false otherwise true
phpParameterHint.collapseHintsWhenEqual Collapse hint when variable name is the same as parameter name, keep the hint if the argument is passed by reference or if the splat operator is used false
phpParameterHint.collapseTypeWhenEqual Collapse type when it is equal to the variable name false
phpParameterHint.showFullType Show full type, including namespaces instead of the short name false
phpParameterHint.hintOnlyLiterals Show hints only for literals false
phpParameterHint.hintOnlyLine Show hints only for current line/selection false
phpParameterHint.hintOnlyVisibleRanges Show hints only for visible ranges false
phpParameterHint.hintTypeName Hint only name(0 - default) / Hint type and name(1) / Hint type(2) 0
phpParameterHint.showDollarSign Show dollar sign in front of parameter name false

Commands

Name Description SHORTCUT
phpParameterHint.toggle Hide / Show Hints Key: CTRL + K H, Mac: CMD + K H
phpParameterHint.toggleOnChange Hide / Show Hints on text change Key: CTRL + K O, Mac: CMD + K O
phpParameterHint.toggleOnSave Hide / Show Hints on document save Key: CTRL + K S, Mac: CMD + K S
phpParameterHint.toggleLiterals Hide / Show Hints only for literals Key: CTRL + K L, Mac: CMD + K L
phpParameterHint.toggleLine Hide / Show Hints only for current line/selection Key: CTRL + K I, Mac: CMD + K I
phpParameterHint.toggleCollapse Hide / Show Hints when variable name matches parameter name Key: CTRL + K C, Mac: CMD + K C
phpParameterHint.toggleTypeName Hint name(default), type and name or only type Key: CTRL + K T, Mac: CMD + K T
phpParameterHint.toggleCollapseType Toggle collapsing type and name when they are equal Key: CTRL + K Y, Mac: CMD + K Y
phpParameterHint.toggleFullType Hide / Show full type name(namespaces including) Key: CTRL + K U, Mac: CMD + K U
phpParameterHint.toggleVisibleRanges Hide / Show Hints only in visible ranges Key: CTRL + K R, Mac: CMD + K R
phpParameterHint.toggleDollarSign Hide / Show dollar sign in front of parameter name Key: CTRL + K D, Mac: CMD + K D

Colors

You can change the default foreground and background colors in the workbench.colorCustomizations property in user settings.

Name Description
phpParameterHint.hintForeground Specifies the foreground color for the hint
phpParameterHint.hintBackground Specifies the background color for the hint

Credits

PHP Parser

PHP Intelephense

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.