- Visual Studio Code for Mac is a lightweight, yet powerful source code editor that runs from your Mac desktop*. It comes with built-in support for JavaScript, TypeScript and Node.js and has a varied array of extensions available for other languages, including C++, C#, Python, and PHP.
- Visual Studio Code for Mac Developers. How to install. Aug 26, 2015 at 10:49AM. By Jonathan Rozenblit, Sergii Baidachnyi, Lachezar Arabadzhiev. Average of 3.75 out of 5 stars 9 ratings.
- Visual Studio Code is available now for Mac. I know that in the past it was not. There is great documentation to get you started on a Mac. You can also sign up for Visual Studio Dev Essentials. However, if you already subscribe to a Microsoft product, i.e., Office 365 (I do), all you have to do is sign in with those credentials.
Visual Studio Code is free and available on your favorite platform – Linux, Mac OSX, and Windows. Download Visual Studio Code to experience a redefined code editor, optimized for building and debugging modern web and cloud applications.
I have enrolled new team which are using Visual Studio, but I have a MAC computer. I have a chance to get Windows computer also, but I am curious about something. Can I use Visual Studio Code instead of Win Visual Studio? Has it all properties of Win version?
Gama112 Answers
No, it does not. Visual Studio Code
for mac is mostly an editor, not a full fledged IDE as Visual Studio
for Windows is. Check out the FAQ.
You can use Visual Studio Code on Windows, but is only a editor and not a IDE like Visual Studio, then maybe the best is if you need have windows install Visual Studio and also install ReSharper or another tools.
If you love Mac/linux and don't feel very comfortable with Windows, you can work with Visual Code with any problem or use Rider project
is a new IDE for C# for run net core app.
masonNot the answer you're looking for? Browse other questions tagged visual-studio-code or ask your own question.
I cannot find a way to comment and uncomment multiple lines of code in Visual Studio Code.
Is it possible to comment and uncomment multiple lines in Visual Studio Code using some shortcut? If yes, how to do it?
Gama1125 Answers
Shift+Alt+A
Here you can find all the keyboard shortcuts.
PS: I prefer Ctrl+Shift+/ for toggling block comments because Ctrl+/ is shortcut for toggling line comments so it's naturally easier to remember. To do so, just click on the settings icon in the bottom left of the screen and click 'Keyboard Shortcuts' and find 'toggle block...'. Then click and enter your desired combination.
Gama11- Select the lines you want to comment/uncomment
Execute the command
editor.action.commentLine
(default shortcut on Windows:CTRL + /
)or
execute the command
editor.action.addCommentLine
(default shortcut on Windows:ctrl+k ctrl+c
) respectivelyeditor.action.removeCommentLine
(default shortcut on Windows:ctrl+k ctrl+u
)
See the official doc : Key Bindings for Visual Studio Code
SampathThe keyboard shortcut to comment multiple in Windows is shift+alt+A.
nbroHow to comment out multiline / single line in VS Code:
MacOS:
Shift + Option + A:
CMD + /:
Windows:
Shift + Alt + A:
CTRL + /:
How to remap / change these shortcuts?
Windows: File > Preferences > Keyboard Shortcuts.
MacOS: Code > Preferences > Keyboard Shortcuts.
You can search through the list both by keybindings (key names) and command names.
Read:How to set shortcuts from another text editor (Sublime, Atom etc)?
Official docs:Key Bindings for Visual Studio Code
EduardEduardYou can see all available keybindings on the official documentation.
Here's the relevant bit for osx:
You will need to select the lines you want to comment first, then execute above shortcut, i.e. ⌘/
on osx Ctrl/
on Windows.
For my keyboard layout it's Ctrl + § for:
And Shift + Alt + A for:
J. ChomelTo comment multiple line on visual code use
To comment single line use
CENT1PEDEIn MacOS
comment out multi-lines in Visual Studio Code by keyboard shortcut:
Option + Shift + A
Sajib KhanSajib KhanCTRL + SHIFT + A
for CSS multiline
- Ubuntu 16
- VSCode Version 1.17.2
In the new version of VSCODE ( version 1.26.1)
- Go to File > preferences > Keyboard Shortcuts
- Search for
comment
Double click the existing shortcut 'keybinding` - And press the new keyboard shortcut in my case
ctrl + shfit + /
You can assign any shortcuts you want. Hope it helps.
CTRL + SHIFT + AFor Red Hat,centos
- Select item
- then CTRL+SHIFT+A
Win10 with French / English Keyboard CTRL + / , ctrl+k+u and ctrl+k+l don't work.
Here's how it works:
/* */ SHIFT
+ ALT
+ A
// CTRL
+ É
É key is next to right Shift.
For me it was ctrl + '
(I am using a swedish layout for the keyboard). Hope that helps anyone.
1.Select the text, Press Cntl + K, C to comment (Ctr+E+C )2.Move the cursor to the first line after the delimiter // and before the Code text.3.Press Alt + Shift and use arrow keys to make selection. ... 4.Once the selection is done, press space bar to enter a single space.
visual studio 2017 we do a: Comment Selection
press Ctrl+K to get shortcut. press Ctrl+C to confirm http://visualstudioshortcuts.com/2017/
You can view the existing shortcuts using the same steps as below. I find the default ones to be inconvenient, so I used the following process to change the IDE to use the '/' command seen in the comments.
You can customize the keyboard shortcuts by going int the 'Tools' menu and selecting 'Options'. Then select 'Keyboard' from the 'Environment' branch. From there you can bind the Edit.CommentSelection and Edit.UncommentSelection commands to whichever keyboard shortcuts you'd like.
CTRL + / comment / uncomment multiple lines of code
ctrl+k+u for upper case latter
ctrl+k+l for lower case latter
As of now (version 1.18.0), you can check keyboard shortcuts by going toFile > Preferences > Keyboard shortcuts. Here you can search for comment related shortcuts.
For users who are coming from Sublime Text
or likes to have Ctrl+Shift+/, you can make the change from the above mentioned setting or simply install the Sublime Text Keymap
extension by Microsoft.
on Windows 10, Italian Keyboard, VSC 1.19.1:
Select lines that you want comment and press 'Ctrl + ù'
Visual Studio Code For Mac 10.6.8
In windows you need to press ctrl + /
in mac you can do Command ⌘ + /
to make multiple comment
Then if you want to un-comment then select the lines again and then press ctrl + /
(in windows) again Command ⌘ + /
(in mac).
You can find the shortcut in the Edit menu :
Edit > Toggle Block Comment => Shift-Alt-A
Sylvain RodrigueSylvain RodrigueIf you are using VSCode in a linux environment, then you can comment multiple lines by either:
Selecting a block of code => then, press Ctrl + Shift + A (Block commenting)
Visual Studio Code For Mac
Or, selecting a block of code => then, press Ctrl + / (Single-line commenting applied to all selected lines)
Hope this helps.
protected by eyllanescMay 8 '18 at 3:27
Free Visual Studio For Mac
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?