插件

20240423173308
20240423173331

快捷键

ctrl + b
ctrl + alt + b
ctrl + s
ctrl + n

主题

配色方案
20240311154302
主题
20240423164843
字体Fira Cod
首选项-设置-复制
20240311154630

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"ignored_packages":
[
],
"font_face": "Fira Code",
/*"font_size": 12,*/
"theme": "Seti Monokai.sublime-theme",
"color_scheme": "Packages/Theme - Seti Monokai/scheme/Seti Monokai.tmTheme",
"dark_color_scheme": "Monokai.sublime-color-scheme",
"light_color_scheme": "Breakers.sublime-color-scheme",

"sublime_merge_path": "D:\\Sublime Text\\Sublime Merge\\sublime_merge.exe",


"auto_complete": true,
"auto_mathch_enabled": false,
/*"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",*/
/*"font_size": 12,*/
/*"ignored_packages":
[
"Vintage"
],*/
// "auto_complete_triggers":
// [
// {"selector": "text.html", "characters": "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.<",},
// {"selector": "text.plain", "characters": "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.<",}
// ],

"index_files": true,
"font_size": 14,
}

编译系统

python

1
2
3
4
5
6
{
"cmd": ["E:/Anaconda/envs/test2/python.exe", "-u", "$file"],
"selector": "source.python",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"quiet": true
}

java

需要手动更改class名字,目前结果方法没找到。写个模版改一下

1

FastOlympicCoding

更改python解释器

更改的是ctrl + alt + b的解释环境

  • 可以看出下方的和右侧不一样,
  • 这是因为在Sublime Text的默认设置中,Ctrl + B通常用于触发当前激活的构建系统,是之前设置的’test2’
  • ctrl + alt + bFastOlympicCoding运行的默认环境python。

20240205175833
这和本地的环境是一一对应的
20240205180443

  • 1 先按照下图打开:
    20240205175324
  • 2找到python
  • 3把"run_cmd": "python \"{source_file}\"中的python改为自己想要的解释器路径,如下图
    20240205175358
    更改完毕结果如下
    20240205180536

sublime 配置java环境

  • 下载jdk和前文配置vscode
  • 新建编译系统
    工具-编译系统-新建编译系统-复制进去-保存为java.sublime-build
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    {
    "cmd": ["javac", "$file_name", "&&", "start","cmd", "/k", "java", "$file_base_name"],
    "shell": true,
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "working_dir": "$file_path",
    "selector": "source.java",
    "encoding": "GBK",
    "variants": [
    {
    "name": "Terminal",
    "cmd": ["javac", "$file_name", "&&", "start","cmd", "/k", "java", "$file_base_name"],
    "shell_cmd": "",
    },
    {
    "name": "Build",
    "quiet": true,
    "shell_cmd": "javac $file_name && java $file_base_name && del $file_base_name.class",
    }
    ]
    }

    sublime添加代码模板记得空出class位置

    工具-插件开发-新建代码片段-复制代码-保存为-“jm.sublime-snippet”
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    <snippet>
    <content><![CDATA[
    //$TM_FILEPATH
    import java.io.*;
    import java.util.StringTokenizer;
    import java.util.Scanner;
    public class ${1:} {
    public static Reader in;
    public static PrintWriter out;
    public static void main(String[] args) {
    out = new PrintWriter(new BufferedOutputStream(System.out));
    in = new Reader();
    int t = in.nextInt();
    while (t-- > 0)
    solve();
    out.close();
    }
    static void solve(){
    int n = in.nextInt(), m = in.nextInt(), k = in.nextInt();
    char[][] c = new char[n][m];
    for (int i = 0; i < n; i++) {
    c[i] = in.nextLine().toCharArray();
    }
    }

    static class Reader {
    private BufferedReader br;
    private StringTokenizer st;

    Reader() {
    br = new BufferedReader(new InputStreamReader(System.in));
    }

    boolean hasNext(){
    try {
    while (st == null || !st.hasMoreElements()) {
    st = new StringTokenizer(br.readLine());
    }
    }catch (Exception e){
    return false;
    }
    return true;
    }

    String next() {
    try {
    while (st == null || !st.hasMoreTokens()) {
    st = new StringTokenizer(br.readLine());
    }
    } catch (IOException e) {
    e.printStackTrace();
    }
    return st.nextToken();
    }

    int nextInt() {
    return Integer.parseInt(next());
    }

    int[] nextIntArray(int n) {
    int[] arr = new int[n];
    for (int i = 0; i < n; i++)
    arr[i] = nextInt();
    return arr;
    }

    long[] nextLongArray(int n) {
    long[] arr = new long[n];
    for (int i = 0; i < n; i++)
    arr[i] = nextLong();
    return arr;
    }

    long nextLong() {
    return Long.parseLong(next());
    }

    String nextLine() {
    String s = "";
    try {
    s = br.readLine();
    } catch (IOException e) {
    e.printStackTrace();
    }
    return s;
    }
    }
    }
    ]]></content>
    <tabTrigger>jp</tabTrigger>
    </snippet>

    输入jp(自己设置的)就可以出现代码模板
    20240311153911