{
    "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment",
    "locale": "en",
    "title": "Toggle Line Comment: Knowledge hub | DeLaParra Services",
    "description": "Comment or uncomment the current line (or selection). Works in any language.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment",
        "nl": "https://delaparra-services.nl/nl/kennisbank/toggle-line-comment"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.md",
        "json": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.csv",
            "encodingFormat": "text/csv",
            "name": "toggle-line-comment.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.json",
            "encodingFormat": "application/json",
            "name": "toggle-line-comment.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.md",
            "encodingFormat": "text/markdown",
            "name": "toggle-line-comment.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.pdf",
            "encodingFormat": "application/pdf",
            "name": "toggle-line-comment.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.zip",
            "encodingFormat": "application/zip",
            "name": "toggle-line-comment.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [Toggle Line Comment](<https://delaparra-services.nl/knowledge-hub/toggle-line-comment>)\n\n  \n\nCategory: Keyboard shortcuts \n\n# Toggle Line Comment\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is Toggle Line Comment?\n\n \n\nToggle Line Comment: Comment or uncomment the current line (or selection). Works in any language. Toggle Line Comment comments out the current line or selected lines, or uncomments them if they already are. In VS Code and JetBrains IDEs it is ` Ctrl+/ ` or ` Cmd+/ `. The editor uses the right comment style for the language: ` // ` in PHP and JavaScript, ` # ` in Python and YAML, ` <!-- --> ` in HTML. Block comments have their own shortcut, ` Shift+Alt+A ` in VS Code.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about Toggle Line Comment\n\n  \n\n### What should you keep in mind with Toggle Line Comment?\n\n \n\nIt is handy for temporarily disabling code while debugging. Do not leave large blocks of commented-out code in the codebase, though. Version control already remembers old code, and commented blocks confuse later readers, who cannot tell whether the code is still needed. Delete it, and fetch it from Git history if you ever need it again.\n\n \n\n## At a glance\n\n   CategoryKeyboard shortcuts Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Keyboard shortcuts terms\n\n \n\n- [Step Out](<https://delaparra-services.nl/knowledge-hub/step-out>) \n- [Step Over](<https://delaparra-services.nl/knowledge-hub/step-over>) \n- [Toggle Breakpoint](<https://delaparra-services.nl/knowledge-hub/toggle-breakpoint>) \n- [Toggle Integrated Terminal](<https://delaparra-services.nl/knowledge-hub/toggle-integrated-terminal>) \n- [Toggle Sidebar](<https://delaparra-services.nl/knowledge-hub/toggle-sidebar>) \n- [yy (yank line)](<https://delaparra-services.nl/knowledge-hub/yy-yank-line>)\n\n \n\n[All terms starting with T](<https://delaparra-services.nl/knowledge-hub#letter-t>)\n\n \n\n## Skills\n\n \n\n- ### Editor shortcuts (VS Code / Cursor and Vim)\n\n \n\nUse when a user asks how to do something faster in VS Code (or Cursor) or Vim, asks what a keyboard shortcut does (e.g. Ctrl+D, Ctrl+Shift+P, F12, gg, dd, yy, ciw, :wq), wants to customise keybindings, or is stuck in Vim. Gives the correct shortcut for their operating system and can write keybindings.json entries.\n\n [View skill](<https://delaparra-services.nl/skills/editor-shortcuts>) [Download zip](<https://delaparra-services.nl/skills/editor-shortcuts/download>)\n\n \n\n## Manuals\n\n \n\n- [Keyboard shortcuts in VS Code and the terminal](<https://delaparra-services.nl/manuals/sneltoetsen-in-vs-code>) \n- [Installing Visual Studio Code](<https://delaparra-services.nl/manuals/visual-studio-code-installeren>)\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/toggle-line-comment)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment",
                "name": "Toggle Line Comment: Knowledge hub | DeLaParra Services",
                "description": "Comment or uncomment the current line (or selection). Works in any language.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#term",
                    "name": "Toggle Line Comment",
                    "description": "Comment or uncomment the current line (or selection). Works in any language.",
                    "termCode": "toggle-line-comment",
                    "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment",
                    "inLanguage": "en",
                    "keywords": "Keyboard shortcuts",
                    "dateModified": "2026-11-25T17:46:31+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is Toggle Line Comment?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Comment or uncomment the current line (or selection). Works in any language. Toggle Line Comment comments out the current line or selected lines, or uncomments them if they already are. In VS Code and JetBrains IDEs it is Ctrl+/ or Cmd+/. The editor uses the right comment style for the language: // in PHP and JavaScript, # in Python and YAML, <!-- --> in HTML. Block comments have their own shortcut, Shift+Alt+A in VS Code."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with Toggle Line Comment?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "It is handy for temporarily disabling code while debugging. Do not leave large blocks of commented-out code in the codebase, though. Version control already remembers old code, and commented blocks confuse later readers, who cannot tell whether the code is still needed. Delete it, and fetch it from Git history if you ever need it again."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/editor-shortcuts#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/sneltoetsen-in-vs-code#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/visual-studio-code-installeren#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "Toggle Line Comment"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#dataset",
                "name": "Toggle Line Comment",
                "description": "Comment or uncomment the current line (or selection). Works in any language.",
                "url": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment",
                "identifier": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Keyboard shortcuts",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:31+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "toggle-line-comment.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "toggle-line-comment.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "toggle-line-comment.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "toggle-line-comment.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "toggle-line-comment.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/toggle-line-comment.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:31+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}