AuthorKevin ArchivesCategories |
Back to Blog
Visual Studio For Mac Is Not Working10/10/2021
Not working in Command Line for Visual Studio Code on OSX/Mac. Open the Command Palette via (P) and type shell command to find the Shell Command:code. Next, open Visual Studio Code. Otherwise (as noted in the comments) you’ll have to go through this process again after reboot. Make sure you drag Visual Studio Code app into the -Applications- folder.Make sure Auto List Members is checked. Go to Tools -> Options -> Text Editor -> All Languages -> General. If all of the above didn’t work, it’s time to verify some configurations in Visual Studio itself.
In this case, the sync pragmas tell Settings Sync whether to keep a specific setting.// A sync pragma can only be applied to one property (as far as I can tell).I used the Operating System pragma ( os) to preserve preferences between Mac and Windows. A pragma is a piece of code that tells a compiler about something. After some testing, I figured I needed the following sizes:Settings Sync lets you preserve specific settings with a thing they call sync pragmas. Their screen resolutions were different too. (I’ll share them in the next article). Pretty cool!Settings Sync is a real lifesaver here :) Syncing keyboard shortcutsIf you can keep preferences with sync settings, how do you keep preferences for keyboard shortcuts?I put a ton of effort into customising my keyboard shortcuts. // Windows preferencesSo I get to keep the settings I like for both computers. // Mac preferencesLikewise anything labelled with os=mac got commented out on my Windows’ settings.json file. If Settings Sync thinks the property should be disabled, it’ll comment it out.For example, anything labelled with os=windows got commented out on my Mac’s preferences (the settings.json file). Visual Studio Is Not Working Free To UploadIf you spot a typo, I’d appreciate if you can correct it on GitHub. They would NOT overwrite each other.This, however, means you need to configure key bindings for Mac and Windows separately.I’ll share my configurations in the next article.If you enjoyed this article, please tell a friend about it! Share it on Twitter. For Mac, it uses a file called keybindingsMac.json.So feel free to upload your key bindings without adding any comments. It uses a file called keyBindings.json to store Windows shortcuts.
0 Comments
Read More
Leave a Reply. |