munyabe / togglecomment Goto Github PK
View Code? Open in Web Editor NEWThis is a simple visual studio extension to comment/uncomment the selected lines.
Home Page: https://marketplace.visualstudio.com/items?itemName=munyabe.ToggleComment
This is a simple visual studio extension to comment/uncomment the selected lines.
Home Page: https://marketplace.visualstudio.com/items?itemName=munyabe.ToggleComment
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)
// {
//
// }
VovaP wrote on Visual Studio Gallery.
There are some problem with HTML. I receive the error message until trying to uncomment . (https://www.dropbox.com/s/flq2zo23snzqkbb/snap01.PNG?dl=0)
In the same time the Visual Studio command "uncomment" works properly.
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.
Toggling no longer works, may have been a update to VS that broke it, but not sure.
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.
After I install update 3 for VS 2015 toggle comment is not working. I can't see toggleComment features in Edit > Advanced nor in Keyboard options.
Tried disable and reinstall.
The toggle command is not doing anything for .c, .cpp or .h files.
I believe this can be fix by expanding: https://github.com/munyabe/ToggleComment/blob/master/ToggleComment/ToggleCommentCommand.cs#l92
Instead of: case "CSharp":
Something like:
case "CSharp":
case "C":
case "CPlusPlus":
case "H":
I would have proposed a patch but for some reason I'm not able to open the project locally so I can't try it.
Could you please add support for these types of files ?
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.
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.
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 #.
Please add a block commenting for in-line selection ("/","/"), and multi-caret support would be great.
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.
Hi,
Since VS 2022 Preview is already available. Do you have plans to update this extension to VS 2022?
It seems that there is already a guide for updating the extensions.
Thanks in advance ;)
This is my number one most important extension and a new recent update to Visual Studio 2019 seems to have broken it. Pressing ctrl+/ has no effect now. Please fix!
Hello, could I add VS 2017 compatibility? TKS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.