Giter Club home page Giter Club logo

togglecomment's Issues

Empty line not commented

Hi, this a feature request. If there is empty space, can you also add a comment e.g.

Instead of this,
	// public void		ouseMove (int deltaX, int deltaY)
	// {

	// }
becomes
	// public void		ouseMove (int deltaX, int deltaY)
	// {
        //
	// }

Unexpected behaviour

I was looking for a VSCode-like experience for toggling comments in Visual Studio 2019.
This extension solve almost all problems, except for some particular situations in which it behaves weirdly.
Example:
line1
//line2
//line3
line4
when selecting all lines, even not fully, a comment is added to all lines, making it a double comment for line2 and line3 (correct)
when selecting lines2,3,4 the comments on line2 and 3 are removed, instead of the same behaviour above.
That makes it unusable and it's a shame since it's closest to the (superior) comment toggling behaviour found natively in VSCode.

Step down after non-highlighted operation

I'm not sure about in Eclipse but in Android Studio if you press CTRL+/ without a block being selected (as in just the cursor on the line) the current line is commented/uncommented then the cursor is then moved down a row. This makes it easy to comment/uncomment successive lines by starting at the top and pressing CTRL+/ multiple times, applying the operation to each line individually and is one of my most used features of Android Studio. It would be great if this 'stepping-down' functionality could be included in this product.

Compatibility VS2019 Preview 2

It would be nice to start testing the extension in VS 2019. But I understand if you'd like to wait until the official release.

Add support for VS 2019

Can we please add support for VS 2019?
This is a really useful extension, and now I am finding it hard to migrate to 2019 without CTRL+/ ๐Ÿ˜
Thanks.

Python pep

In Python it is a widespread standard that comments have a space between # and the comment. Instead of adding and removing "#" it should add and remove "# ". Notice the space after #.

Block commenting

Please add a block commenting for in-line selection ("/","/"), and multi-caret support would be great.

Behaviour not as expected

When the lines are only partially selected, like this (before / after):

img

The comments don't range the whole lines. That's not what the screenshot on the gallery suggests. Is this a bug or as intended?

Support for code section in razor files

Razor files in Blazor project contain code section with C# code. Unfortunately, ToggleComment treats this section also as razor markup and uses '@' and '@' instead of '//' for comments.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.