Latest Version:
Visual Studio Code for Mac is a powerful code editor redefined and optimized for building and debugging modern web and cloud applications. The app provides developers with a new choice of developer tool that combines the simplicity and streamlined experience of a code editor with the best of what developers need for their core code-edit-debug cycle. Visual Studio Code is the first code editor, and first cross-platform development tool - supporting OSX, Linux, and Windows - in the Visual Studio family.
At its heart, Visual Studio Code for macOS features a powerful, fast code editor great for day-to-day use. The Preview release of Code already has many of the features developers need in a code and text editor, including navigation, keyboard support with customizable bindings, syntax highlighting, bracket matching, auto indentation, and snippets, with support for dozens of languages. Meet IntelliSense Go beyond syntax highlighting and autocomplete with IntelliSense, which provides smart completions based on variable types, function definitions, and imported modules. Print statement debugging is a thing of the past Debug code right from the editor. Launch or attach to your running apps and debug with break points, call stacks, and an interactive console. Git commands built-in Working with Git has never been easier. Review diffs, stage files, and make commits right from the editor. Push and pull from any hosted Git service. Extensible and customizable Want even more features? Install extensions to add new languages, themes, debuggers, and to connect to additional services. Extensions run in separate processes, ensuring they won't slow down your editor. Note: Requires 64-bit processor. Also Available: Download Visual Studio Code for Windows
The downloaded file is compressed file VSCode-darwin-stable.zip. I extract it and when I run it the alert says: “Visual Studio Code” can’t be opened because Apple cannot check it for malicious software.This software needs to be updated. 2015-4-30 Microsoft在2015年4月30日Build 开发者大会上正式宣布了 Visual Studio Code 项目:一个运行于 Mac OS X、Windows和 Linux 之上的,针对于编写现代 Web 和云应用的跨平台源代码编辑器。. This article describes using comments in the source editor of Visual Studio for Mac Comment out code - Visual Studio 2019 for Mac Microsoft Docs Skip to main content. 2020-3-16 在 Build 2015 大会上,微软除了发布了 Microsoft Edge 浏览器和新的 Windows 10 系统外,最大的惊喜莫过于宣布推出免费跨平台的 Visual Studio Code 编辑器了!Visual Studio Code (简称 VS Code / VSC) 是一款免费开源的现代化轻量级代码编辑器,支持几乎所有主流的开发语言的语法高亮、智能代码补全、自定义热键. 2018-1-30 Anaconda+VSCode搭建python 环境 Anaconda是非常好用的开源python发行版本,自带了一堆python常用库. 中途会提示你装VS Code ,装就是了。 装完后运行cmd:conda -version,看看是否装好了 再运行 conda activate就进入anaconda环境.
-->
Visual Studio for Mac 是 Mac 上的 .NET 集成开发环境,可用于编辑、调试和生成代码,然后发布应用 。Visual Studio for Mac is a .NET integrated development environment on the Mac that can be used to edit, debug, and build code and then publish an app.除了预期的功能(例如,标准编辑器和调试程序)外,Visual Studio for Mac 还包括编译器、代码完成工具、图形设计器和源代码管理,以简化软件开发过程。In addition to expected features, such as a standard editor and debugger, Visual Studio for Mac includes compilers, code completion tools, graphical designers, and source control to ease the software development process.
Visual Studio for Mac 支持许多与其 Windows 对应的文件类型相同的文件类型(例如
.csproj 、.fsproj 或 .sln 文件),并且支持 EditorConfig 等功能,这意味着可以使用最适合自己的 IDE。Visual Studio for Mac supports many of the same file types as its Windows counterpart, such as .csproj , .fsproj , or .sln files, and supports features such as EditorConfig, meaning that you can use the IDE that works best for you.对于之前使用过 Windows 上的 Visual Studio 人的任何人来说,在创建、打开和开发应用时将不会觉得陌生。Creating, opening, and developing an app will be a familiar experience for anyone who has previously used Visual Studio on Windows.此外,Visual Studio for Mac 采用许多强大的工具,将它的 Windows 对应产品打造成十分强大的 IDE。In addition, Visual Studio for Mac employs many of the powerful tools that make its Windows counterpart such a powerful IDE.Roslyn 编译器平台用于重构和 IntelliSense。The Roslyn Compiler Platform is used for refactoring and IntelliSense.它的项目系统和生成引擎使用 MSBuild,它的源编辑器使用与 Windows 上的 Visual Studio 相同的基础。Its project system and build engine use MSBuild, and its source editor uses the same foundation as Visual Studio on Windows.对于 Xamarin 和 .NET Core 应用,使用的是相同的调试器引擎,对于 Xamarin.iOS 和 Xamarin.Android 使用的是相同的设计器。It uses the same debugger engines for Xamarin and .NET Core apps, and the same designers for Xamarin.iOS and Xamarin.Android.
可以在 Visual Studio for Mac 中执行的操作What can I do in Visual Studio for Mac
Visual Studio for Mac 支持以下类型的开发:Visual Studio for Mac supports the following types of development:
Spotify premium free cydia ios 12. 本文探讨了 Visual Studio for Mac 的各个部分,并简要介绍了使其成为一款用于创建这些应用程序的强大工具的部分功能。This article explores various sections of Visual Studio for Mac, providing a look at some of the features that make it a powerful tool for creating these applications.
IDE 导览IDE tour
Visual Studio for Mac 分为多个部分,用于管理应用程序文件和设置、创建应用程序代码以及进行调试。Visual Studio for Mac is organized into several sections for managing application files and settings, creating application code, and debugging.
入门Getting started
Mac app store metronome. 启动 Visual Studio 2019 for Mac 后,新用户可看到登录窗口。When you start Visual Studio 2019 for Mac, new users will see a sign-in window.使用 Microsoft 帐户登录以激活付费许可证(如果有)或链接到 Azure 订阅。Sign-in with your Microsoft account to activate a paid license (if you have one) or link to Azure subscriptions.可以按下“我稍后再执行此操作”,然后通过“Visual Studio”>“登录”菜单项登录 :You can press I'll do this later and sign in later via the Visual Studio > Sign in menu item:
然后,可以通过选择自己喜欢的键盘快捷方式来自定义 IDE:Visual Studio for Mac、Visual Studio、Visual Studio Code 或 Xcode:You'll then be given the option to customize the IDE by selecting your preferred keyboard shortcuts: Visual Studio for Mac, Visual Studio, Visual Studio Code, or Xcode:
登录用户将看到新启动窗口 ,其中显示了最近项目的列表,以及用于打开现有项目或创建新项目的按钮:Signed-in users will see the new start window, which shows a list of recent projects, and buttons to open an existing project or create a new one:
解决方案和项目Solutions and projects
下图显示加载了应用程序的 Visual Studio for Mac:The following image shows Visual Studio for Mac with an application loaded:
以下部分概述了 Visual Studio for Mac 中的主要区域。The following sections provide an overview of the major areas in Visual Studio for Mac.
Solution padSolution pad
Solution Pad 在解决方案中组织项目:The Solution Pad organizes the project(s) in a solution:
![]()
在此位置,源代码、资源、用户界面和依赖关系的文件被组织到特定于平台的项目中。This is where files for the source code, resources, user interface, and dependencies are organized into platform-specific Projects.
有关在 Visual Studio for Mac 中使用项目和解决方案的详细信息,请参阅项目和解决方案一文。For more information on using Projects and Solutions in Visual Studio for Mac, see the Projects and Solutions article.
程序集引用Assembly references
“引用”文件夹中提供每个项目的程序集引用:Assembly references for each project are available under the References folder:
使用“编辑引用” 对话框添加其他引用,双击“引用”文件夹或在其上下文菜单操作中选择“编辑引用” 便可显示该对话框:Additional references are added using the Edit References dialog, which is displayed by double-clicking on the References folder, or by selecting Edit References on its context menu actions:
有关在 Visual Studio for Mac 中使用引用的详细信息,请参阅管理项目中的引用一文。For more information on using References in Visual Studio for Mac, see the Managing References in a Project article.
依赖项/包Dependencies / packages
在应用中使用的所有外部依赖关系存储在“依赖关系”或“包”文件夹中,具体取决于所在的项目是 .NET Core 还是 Xamarin.iOS/Xamarin.Android 项目。All external dependencies used in your app are stored in the Dependencies or Packages folder, depending on whether you are in a .Net Core or Xamarin.iOS/Xamarin.Android project.通常以 NuGet 的形式提供这些内容。These are usually provided in the form of a NuGet.
NuGet 是 .NET 开发最常用的程序包管理器。NuGet is the most popular package manager for .NET development.通过 Visual Studio 的 NuGet 支持,可以轻松地搜索包并将其添加到项目,再添加到应用程序。With Visual Studio's NuGet support, you can easily search for and add packages to your project to application.
若要将依赖关系添加到应用程序,请右键单击“依赖关系”/“包”文件夹,然后选择“添加包” :To add a dependency to your application, right-click on the Dependencies / Packages folder, and select Add Packages:
可在在项目中包括 NuGet 包一文中找到在应用程序中使用 NuGet 包的相关信息。Information on using a NuGet package in an application can be found in the Including a NuGet project in your project article.
源编辑器Source Editor
无论是采用 C#、XAML 还是 Javascript 编写,该代码编辑器都与 Visual Studio Windows 具有相同的核心组件,具有完全本机的用户界面。Regardless of if you're writing in C#, XAML, or Javascript, the code editor the shares the same core components with Visual Studio Windows, with an entirely native user interface.
有关在 Visual Studio for Mac 中使用源编辑器的详细信息,请参阅源编辑器文档。For more information on using the Source Editor in Visual Studio for Mac, see the Source Editor documentation. https://yellowcreditcard865.weebly.com/blog/microsoft-word-header-on-first-page-only-mac.
若要始终显示选项卡,可以固定这些选项卡。To keep tabs visible at all times, you can take advantage of pinning them.这可确保每次启动项目时,都将始终显示需要的选项卡。This ensures that every time you launch a project, the tab you need will always appear.若要固定选项卡,请将鼠标悬停在该选项卡上,并单击固定图标 :To pin a tab, hover over the tab and click the pin icon:
重构Refactoring
使用 Visual Studio for Mac,可通过以下两种实用方法来重构代码:上下文操作和源分析。Visual Studio for Mac provides two useful ways to refactor your code: Context Actions, and Source Analysis.可在重构一文中阅读更多相关信息。You can read more about them in the Refactoring article.
调试Debugging
Visual Studio for Mac 提供支持 .Net Core、.NET Framework、Unity 和 Xamarin 项目的调试器。Visual Studio for Mac has debuggers that support .NET Core, .NET Framework, Unity, and Xamarin projects.Visual Studio for Mac 使用 .NET Core 调试器和 Mono 软调试器,以便 IDE 跨所有平台调试托管代码。Visual Studio for Mac uses the .NET Core debugger and the Mono Soft Debugger, allowing the IDE to debug managed code across all platforms.有关调试的其他信息,请访问调试一文。For additional information on debugging, visit the Debugging article.
调试器包含丰富的可视化工具,可用于字符串、颜色、URL、大小、坐标和贝塞尔曲线等特殊类型。The debugger contains rich visualizers for special types such as strings, colors, URLs, as well as sizes, coordinates, and bézier curves.
有关调试器的数据可视化效果的详细信息,请访问数据可视化效果一文。For more information on the debugger's data visualizations, visit the Data Visualizations article.
版本控制Version control
Visual Studio for Mac 与 Git 和 Subversion 源控件系统集成。Visual Studio for Mac integrates with Git and Subversion source control systems.源控件下的项目用解决方案名称旁列出的分支表示:Projects under source control are denoted with the branch listed next to the Solution name: Download pdf converter apk for android.
Microsoft Visual Code For Mac
如果文件有未提交的更改,文件在解决方案窗格中的图标上就会有注释,如下图所示:Files with uncommitted changes have an annotation on their icons in the Solution Pane, as illustrated in the following image:
有关在 Visual Studio 中使用版本控制的详细信息,请参阅版本控制一文。For more information on using version control in Visual Studio, see the Version Control article.
Microsoft Vs Code For Mac And Cheese后续步骤Next stepsStudio Code Download相关视频Related Video请参阅See alsoComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |