Sublime Text 3主题安装以及Go语言配置

安装Sublime Text 3

下载地址:https://www.sublimetext.com

关于Package Control

Sublime Text 3已经自带安装需要的Package Control。不需要再次安装了。

精选主题

http://www.css88.com/archives/6367

安装配置主题Boxy Theme

官网:https://packagecontrol.io/packages/Boxy%20Theme

  1. 在Sublime Text 3菜单中选择Preferences → Package Control → Install Package → 输入Boxy Theme → 选择Boxy Theme安装。

  2. 重启Sublime Text 3。

  3. 在Sublime Text 3菜单中选择Preferences → Package Setting → Boxy Theme → Preferences → 打开配置文件。

  4. 在右侧User文件中粘贴官网给出配置内容,保存。例如我选择的Boxy Ocean ★ Material:

    Boxy Ocean

配置内容:

{
    "color_scheme": "Packages/Boxy Theme/schemes/Boxy Ocean.tmTheme",
    "font_size": 26,
    "theme": "Boxy Ocean.sublime-theme",
    "theme_accent_cyan": true,
    "theme_bar": true,
    "theme_bar_logo_atomized": true,
    "theme_bar_shadow_hidden": true,
    "theme_button_rounded": true,
    "theme_dirty_colored_always": true,
    "theme_icons_materialized": true,
    "theme_scrollbar_rounded": true,
    "theme_sidebar_highlight_selected_text_only": true,
    "theme_sidebar_highlight_text_only": true,
    "theme_sidebar_indent_top_level_disabled": true,
    "theme_size_md": true,
    "theme_tab_highlight_text_only": true,
    "theme_tab_selected_transparent": true,
    "theme_tab_selected_underlined": true,
    "theme_tab_size_xxl": true,
    "theme_unified": true
}
  1. 此主题还需要安装额外的包,安装方法和之前一样:
  • Boxy Theme Addon - Font Face
  • Color Highlighter
  • Color ​Helper
  1. 重启Sublime Text 3。

  2. 如果觉得字体大小不合适,可以使用⌘(command)+ (+、-)进行调整。

Go语言配置

安装Go语言

  1. 在官网 http://golang.org/下载安装

  2. 查看是否安装成功:

yuyangdeMacBook-Pro:~ yuyang$ go
Go is a tool for managing Go source code.

Usage:

    go command [arguments]

The commands are:

    build       compile packages and dependencies
    clean       remove object files and cached files
    doc         show documentation for package or symbol
    env         print Go environment information
    bug         start a bug report
    fix         update packages to use new APIs
    fmt         gofmt (reformat) package sources
    generate    generate Go files by processing source
    get         download and install packages and dependencies
    install     compile and install packages and dependencies
    list        list packages
    run         compile and run Go program
    test        test packages
    tool        run specified go tool
    version     print Go version
    vet         report likely mistakes in packages

Use "go help [command]" for more information about a command.

Additional help topics:

    c           calling between Go and C
    buildmode   build modes
    cache       build and test caching
    filetype    file types
    gopath      GOPATH environment variable
    environment environment variables
    importpath  import path syntax
    packages    package lists
    testflag    testing flags
    testfunc    testing functions

Use "go help [topic]" for more information about that topic.

Sublime Text 3安装插件Go语言插件GoSublime

  1. 在Sublime Text 3中搜索GoSublime进行安装。

  2. 查看Preferences → Package Setting → GoSublime,存在则说明安装成功。

你可能感兴趣的:(Sublime Text 3主题安装以及Go语言配置)