{"id":29947597,"url":"https://github.com/lacymorrow/vscode-if-end-marker","last_synced_at":"2026-05-03T21:32:40.866Z","repository":{"id":305201075,"uuid":"1022191034","full_name":"lacymorrow/vscode-if-end-marker","owner":"lacymorrow","description":"🏷️ VS Code extension that displays inline markers showing if conditions at closing braces. Perfect for navigating complex conditional logic in JavaScript/TypeScript.","archived":false,"fork":false,"pushed_at":"2026-03-29T17:13:46.000Z","size":397,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T19:08:28.007Z","etag":null,"topics":["code-navigation","conditional-logic","developer-tools","inline-hints","javascript","productivity","typescript","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=Shipkit.vscode-if-end-marker","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/lacymorrow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"lacymorrow","patreon":"lacymorrow","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["buymeacoffee.com/lm","lacymorrow.com/donate"]}},"created_at":"2025-07-18T15:56:16.000Z","updated_at":"2026-03-29T17:13:49.000Z","dependencies_parsed_at":"2025-07-18T22:02:42.541Z","dependency_job_id":"9e8cdfa9-59c6-404c-a639-0989381017be","html_url":"https://github.com/lacymorrow/vscode-if-end-marker","commit_stats":null,"previous_names":["lacymorrow/vscode-if-end-marker"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lacymorrow/vscode-if-end-marker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacymorrow%2Fvscode-if-end-marker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacymorrow%2Fvscode-if-end-marker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacymorrow%2Fvscode-if-end-marker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacymorrow%2Fvscode-if-end-marker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lacymorrow","download_url":"https://codeload.github.com/lacymorrow/vscode-if-end-marker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lacymorrow%2Fvscode-if-end-marker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32586187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["code-navigation","conditional-logic","developer-tools","inline-hints","javascript","productivity","typescript","vscode-extension"],"created_at":"2025-08-03T07:09:42.462Z","updated_at":"2026-05-03T21:32:40.846Z","avatar_url":"https://github.com/lacymorrow.png","language":"TypeScript","funding_links":["https://github.com/sponsors/lacymorrow","https://patreon.com/lacymorrow","buymeacoffee.com/lm","lacymorrow.com/donate"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"images/logo.png\" alt=\"If-End Marker Logo\" width=\"128\" height=\"128\"\u003e\n\u003c/div\u003e\n\n# VS Code If-End Marker\n\n[![Visual Studio Marketplace](https://img.shields.io/visual-studio-marketplace/v/shipkit.vscode-if-end-marker?style=for-the-badge\u0026logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=shipkit.vscode-if-end-marker)\n[![Downloads](https://img.shields.io/visual-studio-marketplace/d/shipkit.vscode-if-end-marker?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=shipkit.vscode-if-end-marker)\n[![Rating](https://img.shields.io/visual-studio-marketplace/r/shipkit.vscode-if-end-marker?style=for-the-badge)](https://marketplace.visualstudio.com/items?itemName=shipkit.vscode-if-end-marker)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n\n\u003e Never lose track of which `if` statement you're closing again! 🎯\n\nA lightweight VS Code extension that displays subtle, inline markers showing the condition of `if` statements at their closing braces. Perfect for navigating complex conditional logic in JavaScript, TypeScript, C, and C++ projects.\n\n![Demo](images/demo.gif)\n\n![Extension Screenshot](images/screenshot.png)\n\n## ✨ Why If-End Marker?\n\nEver found yourself scrolling up to remember what condition that closing brace belongs to? If-End Marker solves this by displaying the original condition right where you need it - at the closing brace.\n\n```javascript\nif (user.isAuthenticated \u0026\u0026 \n    user.hasPermission('admin') \u0026\u0026 \n    !user.accountLocked) {\n    // ... 50 lines of code ...\n    \n    performAdminAction();\n    updateAuditLog();\n} // user.isAuthenticated \u0026\u0026 user.hasPermission('admin') \u0026\u0026...\n  ↑ This appears automatically!\n```\n\n## 🚀 Features\n\n- **🔍 Smart Detection**: Automatically shows markers for multi-line if statements\n- **🎨 Theme Integration**: Markers adapt to your VS Code theme using native inlay hint colors\n- **⚡ Blazing Fast**: Optimized for large codebases with smart caching and viewport rendering\n- **🛠️ Fully Configurable**: Customize when and how markers appear\n- **📝 Multi-language Support**: Works with JS, TS, JSX, TSX, MJS, CJS, C, and C++ files\n\n## 📦 Installation\n\n### From VS Code Marketplace\n\n1. Open VS Code\n2. Press `Ctrl+P` / `Cmd+P` to open the Quick Open dialog\n3. Type `ext install shipkit.vscode-if-end-marker`\n4. Press Enter\n\n### From VSIX Package\n\n1. Download the latest `.vsix` file from the [Releases](https://github.com/lacymorrow/vscode-if-end-marker/releases) page\n2. Open VS Code\n3. Press `Ctrl+Shift+P` / `Cmd+Shift+P`\n4. Type \"Install from VSIX\" and select the command\n5. Choose the downloaded `.vsix` file\n\n### Development Installation\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/lacymorrow/vscode-if-end-marker.git\n   cd vscode-if-end-marker\n   ```\n\n2. Install dependencies:\n   ```bash\n   npm install\n   ```\n\n3. Compile the extension:\n   ```bash\n   npm run compile\n   ```\n\n4. Package and install:\n   ```bash\n   npm run package\n   code --install-extension vscode-if-end-marker-*.vsix\n   ```\n\n## 💡 Usage\n\nThe extension activates automatically when you open JavaScript, TypeScript, C, or C++ files. Markers will appear at the end of if statements that span multiple lines.\n\n### Command Palette Commands\n\nAccess these commands through the Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`):\n\n- **If-End Marker: Toggle Markers** - Toggle the extension on/off\n- **If-End Marker: Enable Markers** - Enable the extension\n- **If-End Marker: Disable Markers** - Disable the extension\n\n### Example\n\n```javascript\nif (userIsLoggedIn \u0026\u0026 \n    hasPermission \u0026\u0026\n    !isExpired) {\n    // Your code here\n    performAction();\n    updateUI();\n} // userIsLoggedIn \u0026\u0026 hasPermission \u0026\u0026...\n```\n\n## ⚙️ Configuration\n\nConfigure the extension through VS Code settings (`Ctrl+,` / `Cmd+,`):\n\n| Setting | Type | Default | Description |\n|---------|------|---------|-------------|\n| `vscodeIfEndMarker.enabled` | boolean | `true` | Enable/disable the extension |\n| `vscodeIfEndMarker.maxConditionLength` | number | `50` | Maximum characters to display from the condition |\n| `vscodeIfEndMarker.maxFileSize` | number | `500000` | Maximum file size (in characters) to process |\n| `vscodeIfEndMarker.debounceDelay` | number | `300` | Delay in milliseconds before updating decorations |\n| `vscodeIfEndMarker.minLineCount` | number | `4` | Minimum lines an if statement must span |\n\n### Example Configuration\n\n```json\n{\n  \"vscodeIfEndMarker.enabled\": true,\n  \"vscodeIfEndMarker.maxConditionLength\": 60,\n  \"vscodeIfEndMarker.maxFileSize\": 1000000,\n  \"vscodeIfEndMarker.debounceDelay\": 400,\n  \"vscodeIfEndMarker.minLineCount\": 3\n}\n```\n\n## 🏃‍♂️ Performance\n\nThe extension is optimized for performance with:\n- **Caching**: Parse results are cached and reused when possible\n- **Viewport-based rendering**: Only processes visible code\n- **Debouncing**: Updates are delayed during rapid typing\n- **File size limits**: Large files can be automatically skipped\n- **Optimized parsing**: Uses efficient string operations and pre-compiled regex\n\n### Performance Tips\n\n1. For very large files, increase `maxFileSize` or set to `0` to disable the limit\n2. Increase `debounceDelay` if you experience lag during typing\n3. Adjust `minLineCount` to control when markers appear\n\n## 🧑‍💻 Development\n\n### Prerequisites\n\n- Node.js 16.x or higher\n- VS Code 1.74.0 or higher\n\n### Building from Source\n\n```bash\n# Install dependencies\nnpm install\n\n# Compile TypeScript\nnpm run compile\n\n# Watch for changes\nnpm run watch\n\n# Run linting\nnpm run lint\n\n# Package extension\nnpm run package\n```\n\n### Testing\n\n```bash\n# Run tests\nnpm test\n```\n\n### Publishing\n\nThis project uses automated versioning and changelog generation based on commit messages.\n\n```bash\n# Automatic version bump based on commits\nnpm run release\n\n# Force specific version bump\nnpm run release:patch  # 1.0.0 -\u003e 1.0.1\nnpm run release:minor  # 1.0.0 -\u003e 1.1.0\nnpm run release:major  # 1.0.0 -\u003e 2.0.0\n```\n\n#### Commit Message Format\n\nFollow [Conventional Commits](https://www.conventionalcommits.org/):\n\n- `feat: Add new feature` → Minor version bump\n- `fix: Fix bug` → Patch version bump\n- `feat!: Breaking change` → Major version bump\n- `perf: Improve performance` → Patch version bump\n- `docs: Update README` → No version bump\n- `chore: Update dependencies` → No version bump\n\n## 🤝 Contributing\n\nContributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) before submitting PRs.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n### Development Workflow\n\n1. Make your changes\n2. Run `npm run compile` to build\n3. Press `F5` in VS Code to launch a new Extension Development Host\n4. Test your changes\n5. Run `npm run lint` to check for issues\n\n## 🐛 Known Issues\n\n- Complex nested if statements may not always be parsed correctly\n- The parser uses a regex-based approach which may miss some edge cases\n- Conditions containing string literals with parentheses might be truncated incorrectly\n\n## 🔧 Troubleshooting\n\n### Markers not appearing\n\n1. Check if the extension is enabled in settings\n2. Ensure your if statement spans at least 4 lines (configurable)\n3. Verify the file type is supported (JS/TS/JSX/TSX/C/C++)\n4. Try reloading VS Code (`Ctrl+R` / `Cmd+R`)\n\n### Performance issues\n\nIf you experience performance issues with large files:\n1. Consider increasing `vscodeIfEndMarker.maxFileSize`\n2. Temporarily disable the extension for very large files\n3. Report the issue with file details\n\n## 📝 Releases\n\nSee the [Releases page](https://github.com/lacymorrow/vscode-if-end-marker/releases) for a full changelog. Each release includes:\n- Automated changelog from commit messages\n- Pre-built `.vsix` file for manual installation\n- Source code archives\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## 🙏 Acknowledgments\n\n- Inspired by similar features in JetBrains IDEs\n- Built with the [VS Code Extension API](https://code.visualstudio.com/api)\n- Theme-aware styling adapted from VS Code's inlay hints\n\n## 📞 Support\n\n- **Issues**: [GitHub Issues](https://github.com/lacymorrow/vscode-if-end-marker/issues)\n- **Discussions**: [GitHub Discussions](https://github.com/lacymorrow/vscode-if-end-marker/discussions)\n- **Marketplace**: [VS Code Marketplace Page](https://marketplace.visualstudio.com/items?itemName=shipkit.vscode-if-end-marker)\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made with ❤️ by \u003ca href=\"https://shipkit.io\"\u003eShipkit\u003c/a\u003e • \u003ca href=\"https://github.com/lacymorrow\"\u003eLacy Morrow\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/lacymorrow/vscode-if-end-marker/issues\"\u003eReport Bug\u003c/a\u003e •\n  \u003ca href=\"https://github.com/lacymorrow/vscode-if-end-marker/issues\"\u003eRequest Feature\u003c/a\u003e •\n  \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=shipkit.vscode-if-end-marker\"\u003eRate on Marketplace\u003c/a\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flacymorrow%2Fvscode-if-end-marker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flacymorrow%2Fvscode-if-end-marker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flacymorrow%2Fvscode-if-end-marker/lists"}