Ctrl+/ Uncomment Shortcut Not Working in Assignment Files

"Hi everyone,

I’ve been encountering an issue since the first course, and it persists in course two.

Previously, when I only had a few lines to uncomment, I would do it manually. However, I now need to uncomment around 90 lines of code, which makes manual editing impractical.

The lab files provided as part of the assignment are not allowing me to uncomment using the Ctrl+/ shortcut.

To investigate, I created a simple .py file outside the assignment folder, and the uncommenting shortcut works correctly there. The problem seems to be specific to the files provided as part of the Coursera VS Code assignment."

Good luck with your forum post! Hopefully, someone in the community will have a solution for you. Let me know if there’s anything else I can help with!

1 Like

Hello @lee-jan-fan,

Yes, there was someone with the same suggestion in this post. He has this workaround to shift+/ and he is basically choosing the block to uncomment (one line up from top and bottom). Then selects with alt+shift+l and move with right arrow to delete the # sign (or even add it). It sounds a bit confusing but it really helps when you have to uncomment those 90 lines of code. Hope it helps

1 Like