{
    "url": "https://delaparra-services.nl/knowledge-hub/format-document",
    "locale": "en",
    "title": "Format Document: Knowledge hub | DeLaParra Services",
    "description": "Re-indent and tidy the whole file using the configured formatter (Prettier, gofmt, etc.).",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/format-document",
        "nl": "https://delaparra-services.nl/nl/kennisbank/format-document"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/format-document.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/format-document.md",
        "json": "https://delaparra-services.nl/knowledge-hub/format-document.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/format-document.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/format-document.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/format-document.csv",
            "encodingFormat": "text/csv",
            "name": "format-document.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/format-document.json",
            "encodingFormat": "application/json",
            "name": "format-document.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/format-document.md",
            "encodingFormat": "text/markdown",
            "name": "format-document.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/format-document.pdf",
            "encodingFormat": "application/pdf",
            "name": "format-document.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/format-document.zip",
            "encodingFormat": "application/zip",
            "name": "format-document.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [Format Document](<https://delaparra-services.nl/knowledge-hub/format-document>)\n\n  \n\nCategory: Keyboard shortcuts \n\n# Format Document\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is Format Document?\n\n \n\nFormat Document: Re-indent and tidy the whole file using the configured formatter (Prettier, gofmt, etc.). Format Document runs your configured code formatter on the whole file. In VS Code it is ` Shift+Alt+F ` or ` Shift+Option+F `. JetBrains IDEs use ` Ctrl+Alt+L ` or ` Cmd+Option+L `. The formatter fixes indentation, spacing, line breaks and quote style according to the project's rules. Prettier, Pint, Black and gofmt are common examples.\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 Format Document\n\n  \n\n### What should you keep in mind with Format Document?\n\n \n\nBetter still, enable format on save, so files are always tidy without you thinking about it. Make sure the formatter and its configuration are part of the project rather than your personal editor settings, so the whole team gets the same result. Then add a formatting check to CI. With that in place, formatting never comes up in code reviews again, and reviewers can focus on what the code does.\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- [Delete Line](<https://delaparra-services.nl/knowledge-hub/delete-line>) \n- [Delete Previous Word](<https://delaparra-services.nl/knowledge-hub/delete-previous-word>) \n- [Extract Method / Variable](<https://delaparra-services.nl/knowledge-hub/extract-method-variable>) \n- [gg / G (top / bottom)](<https://delaparra-services.nl/knowledge-hub/gg-g-top-bottom>) \n- [Go to Definition](<https://delaparra-services.nl/knowledge-hub/go-to-definition>) \n- [Go to Line](<https://delaparra-services.nl/knowledge-hub/go-to-line>)\n\n \n\n[All terms starting with F](<https://delaparra-services.nl/knowledge-hub#letter-f>)\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/format-document)\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/format-document#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/format-document",
                "name": "Format Document: Knowledge hub | DeLaParra Services",
                "description": "Re-indent and tidy the whole file using the configured formatter (Prettier, gofmt, etc.).",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/format-document#term",
                    "name": "Format Document",
                    "description": "Re-indent and tidy the whole file using the configured formatter (Prettier, gofmt, etc.).",
                    "termCode": "format-document",
                    "url": "https://delaparra-services.nl/knowledge-hub/format-document",
                    "inLanguage": "en",
                    "keywords": "Keyboard shortcuts",
                    "dateModified": "2026-11-25T17:46:26+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/format-document#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/format-document#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/format-document#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is Format Document?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Re-indent and tidy the whole file using the configured formatter (Prettier, gofmt, etc.). Format Document runs your configured code formatter on the whole file. In VS Code it is Shift+Alt+F or Shift+Option+F. JetBrains IDEs use Ctrl+Alt+L or Cmd+Option+L. The formatter fixes indentation, spacing, line breaks and quote style according to the project's rules. Prettier, Pint, Black and gofmt are common examples."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with Format Document?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Better still, enable format on save, so files are always tidy without you thinking about it. Make sure the formatter and its configuration are part of the project rather than your personal editor settings, so the whole team gets the same result. Then add a formatting check to CI. With that in place, formatting never comes up in code reviews again, and reviewers can focus on what the code does."
                        }
                    }
                ],
                "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/format-document#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": "Format Document"
                    }
                ]
            },
            {
                "@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/format-document#dataset",
                "name": "Format Document",
                "description": "Re-indent and tidy the whole file using the configured formatter (Prettier, gofmt, etc.).",
                "url": "https://delaparra-services.nl/knowledge-hub/format-document",
                "identifier": "https://delaparra-services.nl/knowledge-hub/format-document#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/format-document#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:26+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": "format-document.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/format-document.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "format-document.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/format-document.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "format-document.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/format-document.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "format-document.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/format-document.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "format-document.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/format-document.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:26+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}