{"id":38211270,"url":"https://github.com/anders-liu/vscode-insert-line-number","last_synced_at":"2026-01-20T17:51:09.207Z","repository":{"id":36601399,"uuid":"163772330","full_name":"anders-liu/vscode-insert-line-number","owner":"anders-liu","description":"Insert line numbers to selected lines or the whole document.","archived":false,"fork":false,"pushed_at":"2025-08-24T05:31:05.000Z","size":227,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-24T05:59:09.565Z","etag":null,"topics":["vscode-extensions"],"latest_commit_sha":null,"homepage":null,"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/anders-liu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-01T22:55:41.000Z","updated_at":"2025-08-23T15:46:28.000Z","dependencies_parsed_at":"2023-01-17T03:00:59.603Z","dependency_job_id":null,"html_url":"https://github.com/anders-liu/vscode-insert-line-number","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/anders-liu/vscode-insert-line-number","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anders-liu%2Fvscode-insert-line-number","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anders-liu%2Fvscode-insert-line-number/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anders-liu%2Fvscode-insert-line-number/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anders-liu%2Fvscode-insert-line-number/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anders-liu","download_url":"https://codeload.github.com/anders-liu/vscode-insert-line-number/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anders-liu%2Fvscode-insert-line-number/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28490523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T23:55:29.509Z","status":"ssl_error","status_checked_at":"2026-01-16T23:55:29.108Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["vscode-extensions"],"created_at":"2026-01-17T00:43:29.010Z","updated_at":"2026-01-17T00:43:29.551Z","avatar_url":"https://github.com/anders-liu.png","language":"TypeScript","funding_links":["https://www.buymeacoffee.com/andersliu"],"categories":[],"sub_categories":[],"readme":"# Insert Line Number\n\nThis extension is used to insert line number to a text document which is being edited.\n\n\u003e *Note*,\n\u003e This extensions inserts real pure text-based line numbers to each line,\n\u003e so it's typically used for code samples _in docs or comments_ for easily indicating the metioned\n\u003e lines; it _isn't_ suitable for real code file.\n\n![Screenshot](doc/insert-line-number-1.0.0.gif)\n\n### Support\n\nIf you find this extension helpful, you can [buy me a coffee](https://www.buymeacoffee.com/andersliu).\n\u003ca href=\"https://www.buymeacoffee.com/andersliu\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 40px !important;\" \u003e\u003c/a\u003e\n\n## Features\n\nThe line numbers can be inserted to selected lines or the whole document if no any selected lines.\n\nUser can select different formats among multiple predefined formats, which can be defined in settings.\n\n## Extension Settings\n\n### `InsertLineNumber.formats`\n\n`InsertLineNumber.formats` is an array of `InsertLineNumberConfig.Format` objects, which have the following properties:\n\n----\n#### Property: `start`\nLine number of the first line.\n##### Default value: `1`\n##### Type: `\"current\" | number`\n- `\"current\"`: Starts from the real current line number.\nFor example, user selects line 10-15 in the editor,\nline numbers 10-15 will be inserted to these lines.\n- `number`: Starts from the given number.\nFor example, when the 'start' is set to 1, and\nuser selects line 10-15 in the editor,\nline number 1-6 will be inserted to these lines.\n\n----\n#### Property: `align`\nAlignment of the line number.\n\u003e *Note*,\n\u003e The alignment only apply to the formatted number, no matter the perfix and suffix.\n\u003e For example, when prefix is 'C_' and suffix is ':', the result may be 'C_1  :' or 'C_12 :'.\n\n##### Default value: `\"left\"`\n##### Type: `\"left\" | \"right\"`\n- `\"left\"`: Align to left.\n- `\"right\"`: Align to right.\n\n----\n#### Property: `padding`\nPadding char to satisfy padding to the width.\n##### Default value: `\"space\"`\n##### Type: `\"space\" | \"zero\"`\n- `\"space\"`: Pad line numbers with whitespaces.\n- `\"zero\"`: Pad line numbers with 0.\n\n----\n#### Property: `width`\nWidth of each line number.\n\u003e *Note*,\n\u003e if a line number were longer than the specified width,\n\u003e it won't be truncated.\n##### Default value: `\"normal\"`\n##### Type: `\"normal\" | \"alignToLast\" | number`\n`\"normal\"`: No padding, keep the line numbers as-is.\n`\"alignToLast\"`: Pad the line numbers to the last (longest) one.\n`number`: Pad the line numbers to the given width.\n\n----\n#### Property: `prefix`\nPerfix would be inserted before the formatted line number.\n##### Default value: `\"\"`\n##### Type: `string`\n\n----\n#### Property: `suffix`\nSuffix would be inserted after the formatted line number.\n##### Default value: `\":  \"`\n##### Type: `string`\n\n**Enjoy!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanders-liu%2Fvscode-insert-line-number","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanders-liu%2Fvscode-insert-line-number","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanders-liu%2Fvscode-insert-line-number/lists"}