8000 GitHub - ctf0/vscode-auto-comment-next-line
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ctf0/vscode-auto-comment-next-line

Repository files navigation

i've tried every possible ext that add this feature but sadly all have its own issues, so without any hacks or workarounds, here's what we do

  • check if pressed key is "enter".
  • check if previous line started with a comment char.
  • execute the editor.action.commentLine command.

Config

  • single line comment chars list
"autoCommentNextLine.list": [
     {
        "char": "//",
        "languages": [
            "php",
            "javascript",
            "jsonc"
        ]
    },
    {
        "char": "#",
        "languages": [
            "python"
        ]
    }
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published
0