{"id":15547692,"url":"https://github.com/ryu1kn/vscode-put-print","last_synced_at":"2025-06-23T14:38:18.944Z","repository":{"id":16658689,"uuid":"60610219","full_name":"ryu1kn/vscode-put-print","owner":"ryu1kn","description":"Visual Studio Code Extension. Insert print statement into your code with template defined by language","archived":false,"fork":false,"pushed_at":"2023-07-11T01:01:06.000Z","size":6269,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-18T18:57:53.471Z","etag":null,"topics":["debugging","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=ryu1kn.putprint","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryu1kn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"ryu1kn"}},"created_at":"2016-06-07T12:08:54.000Z","updated_at":"2023-10-02T10:25:42.000Z","dependencies_parsed_at":"2025-04-23T18:47:52.504Z","dependency_job_id":null,"html_url":"https://github.com/ryu1kn/vscode-put-print","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryu1kn/vscode-put-print","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fvscode-put-print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fvscode-put-print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fvscode-put-print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fvscode-put-print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryu1kn","download_url":"https://codeload.github.com/ryu1kn/vscode-put-print/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryu1kn%2Fvscode-put-print/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261496001,"owners_count":23167413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging","vscode-extension"],"created_at":"2024-10-02T13:10:04.636Z","updated_at":"2025-06-23T14:38:18.926Z","avatar_url":"https://github.com/ryu1kn.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ryu1kn"],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/ryu1kn/vscode-put-print.svg?branch=master)](https://travis-ci.org/ryu1kn/vscode-put-print) [![Code Climate](https://codeclimate.com/github/ryu1kn/vscode-put-print/badges/gpa.svg)](https://codeclimate.com/github/ryu1kn/vscode-put-print)\n\n# Print Debug (aka Put Print)\n\n## Features\n\nQuickly put print statements to help you print debug your code.\nTemplates from which print statements are composed can be defined/overwritten per language in your user preferences.\n\n![Put print statement](https://raw.githubusercontent.com/ryu1kn/vscode-put-print/master/images/animations/public.gif)\n\nEscape certain sequences when converting the selected expression into a print statement.\n\n![Put print with escape](https://raw.githubusercontent.com/ryu1kn/vscode-put-print/master/images/animations/print-statement-with-escape.gif)\n\nSpecify print statement template per language.\n\n![Put print by language](https://raw.githubusercontent.com/ryu1kn/vscode-put-print/master/images/animations/print-statement-by-language.gif)\n\nPut sequence number to your print statements.\n\n![Put print with counter](https://raw.githubusercontent.com/ryu1kn/vscode-put-print/master/images/animations/print-statement-with-counter.gif)\n\n\n## Request Features or Report Bugs\n\nFeature requests and bug reports are very welcome: https://github.com/ryu1kn/vscode-put-print/issues\n\nA couple of requests from me when you raise an github issue.\n\n* **Requesting a feature:** Please try to provide the context of why you want the feature. Such as, in what situation the feature could help you and how, or how the lack of the feature is causing an inconvenience to you. I can't think of introducing it until I understand how it helps you 🙂\n* **Reporting a bug:** Please include environment information (OS name/version, the editor version). Also consider providing screenshots (or even videos) where appropriate. They are often very very helpful!\n\n## Commands\n\n* `PrintDebug: Select Expression for Composing Print Statement`\n\n    Select an expression to convert to a print statement, or deselect a selected expression if no expression is highlighted (default: `ctrl+r s`).\n\n* `PrintDebug: Put Print Statement`\n\n    Put print statement composed from selected expression, template and counter (default: `ctrl+r s`).\n\n* `PrintDebug: Reset Counter`\n\n    Reset the counter value (default: none).\n\n## Customise Keyboard Shortcuts\n\nTo set your own keyboard shortcuts for put-print commands, put the key sequences you like in your keyboard shortcut settings. For example:\n\n```json\n  { \"key\": \"shift+f6\", \"command\": \"putprint.selectExpression\",\n                          \"when\": \"editorTextFocus\" },\n  { \"key\": \"f6\",       \"command\": \"putprint.putPrintStatement\",\n                          \"when\": \"editorTextFocus\" }\n```\n\n## Extension Settings\n\nYou can specify a template for a print statement per language.\n\n* `putprint.printStatement.${languageId}.template`\n\n    Print statement template for the language `languageId`. Will be used when expression is selected\n\n* `putprint.printStatement.${languageId}.templateForNoExpression`\n\n    This is also a template but will be used when no expression is selected\n\n* `putprint.printStatement.${languageId}.escapeRules`\n\n    List of escape rules for language `languageId` template\n\nFor example, a print statement for javascript is, by default, provided as follows. You can overwrite this in your \"User/Workspace Settings\".\n\n```json\n  \"putprint.printStatement.javascript.template\": \"console.log('{{selectedExpression|escape}}:', {{selectedExpression}})\",\n  \"putprint.printStatement.javascript.templateForNoExpression\": \"console.log('\u003e\u003e\u003e\u003e\u003e {{count}}')\",\n  \"putprint.printStatement.javascript.escapeRules\": [[\"'\", \"\\\\'\"], [\"\\\\\", \"\\\\\\\\\"]],\n```\n\n### Special Sequences in Templates\n\n`{{KEYWORD}}` is for a placeholder to inject a certain value. Currently, there are:\n\n* `{{selectedExpression}}`\n\n    Replaced with the expression you selected with \"PrintDebug: Select Expression ...\" command\n\n* `{{selectedExpression|escape}}`\n\n    Same with `{{selectedExpression}}` but the result will be escaped by the rules provided as \"escapeRules\"\n\n* `{{count}}`\n\n    Replaced with counter value which is incremented every time you put a print statement that contains `{{count}}`\n\nIf you haven't specified a print statement template for the language you're working on, default template,\nwhich is either `putprint.printStatement.default.template` or `putprint.printStatement.default.templateForNoExpression`,\ndepending on whether you're currently selecting an expression, will be used.\n\n## Changelog\n\n* https://github.com/ryu1kn/vscode-put-print/blob/master/CHANGELOG.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryu1kn%2Fvscode-put-print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryu1kn%2Fvscode-put-print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryu1kn%2Fvscode-put-print/lists"}