设置默认布局


5

如何在Sublime Text 3的首选项中设置默认布局?

我想要的 Columns: 2 每当我打开sublime时,layout都是默认值。

Answers:


3

没有默认设置,但自定义插件会执行此操作。

Menu > Preferences > Browse Packages... 以下内容:

Packages/User/default_layout.py

import sublime

def plugin_loaded():
    sublime.active_window().run_command("set_layout", {
        "cols": [0.0, 0.5, 1.0],
        "rows": [0.0, 1.0],
        "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
    })

1
我在SublimeText3上尝试了这个,重新启动了编辑器,没有,仍然只是1列:(
Hackeron
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.