zoukankan      html  css  js  c++  java
  • C# Sublime text3 环境配置(二)

    下载地址:http://www.sublimetext.com/3

    1、安装完之后,tools菜单下最下一个点一下,安装Package Control 插件
    2、Preferences菜单下,点Package Control 点 install Package
    3、安装插件 SublimeREPL 、 SublimeCodeIntel 、 AutoPep8 、ConvertToUTF8
    4、file--set file encoding to--utf-8

    环境变量设置

    5.0

    C:Program FilesMSBuild12.0Bin

    6.0

    C:WindowsMicrosoft.NETFramework64v4.0.30319;

    定制C#.sublime-build文件

    Tools--Build System--New Build System

    复制粘贴以下代码,保存文件名:C#.sublime-build

     1 {
     2     "shell_cmd": "csc /out:"${file_path}/${file_base_name}.exe" "${file}"",
     3     "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
     4     "working_dir": "${file_path}",
     5     "selector": "source.cs",
     6     "variants":
     7         [
     8             {
     9                 "name": "Build & Run",
    10                 "shell_cmd": "csc /out:"${file_path}/${file_base_name}.exe" "${file}" && start "${file_base_name}.exe" /d "${file_path}" "${file_base_name}.exe"",
    11                 "working_dir": "${file_path}"
    12             },
    13             {
    14                 "name": "Run",
    15                 "shell_cmd": "start "${file_base_name}.exe" /d "${file_path}" "${file_base_name}.exe"",
    16                 "working_dir": "${file_path}"
    17             },
    18             {
    19                 "name": "Build (Form)",
    20                 "shell_cmd": "csc /t:winexe /r:System.Windows.Forms.dll;System.Drawing.dll /out:"${file_path}/${file_base_name}.exe" "${file}"",
    21                 "working_dir": "${file_path}"
    22             },
    23             {
    24                 "name": "Build & Run (Form)",
    25                 "shell_cmd": "csc /t:winexe /r:System.Windows.Forms.dll;System.Drawing.dll /out:"${file_path}/${file_base_name}.exe" "${file}" && start "${file_base_name}.exe" /d "${file_path}" "${file_base_name}.exe"",
    26                 "working_dir": "${file_path}"
    27             },
    28             {
    29                 "name": "Run (Form)",
    30                 "shell_cmd": "start "${file_base_name}.exe" /d "${file_path}" "${file_base_name}.exe"",
    31                 "working_dir": "${file_path}"
    32             },
    33         ]
    34 }
    C#.sublime-build

    编译运行

    选择编译运行,Build Wtih ,Ctrl + Shift + B

    编译运行,Build,Ctrl + B 

    C#暂停命令行窗口

    Console.ReadLine();

  • 相关阅读:
    HTML 基础学习笔记
    使用python访问网络上的数据
    linux上创建ftp服务器下载文件///使用AWS服务器作为代理,下载sbt相关的包
    jquery,字符串转json对象,json对象转字符串
    vue渲染过程的{{xxx}}显示的解决办法
    v-model select 选中值后自动改变vue实例中的属性值
    uniapp华为手机真机运行方法
    获取本机mac地址
    编码Code
    int型比较大小
  • 原文地址:https://www.cnblogs.com/GoldenEllipsis/p/10342003.html
Copyright © 2011-2022 走看看