Skip to content

Sublime Text 4

kyau edited this page May 23, 2023 · 1 revision

This is my personal Sublime Text 4 environmental setup guide that I use on all of my machines.

Install Package Control

Within Sublime Text open the command palette using <CTRL>+<SHIFT>+<P>.

Navigate or use the search to find Install Package Control, select it and press <ENTER>.

Install Packages

Open the command palette using <CTRL>+<SHIFT>+<P>.

Navigate to Package Control: Install Package which will open a list of available remote packages.

The following is a list of packages I typically install.

  • Asterisk Config
  • Color Highlight
  • FileIcons
  • Generic Config
  • GitGutter
  • INI
  • MarkdownEditing
  • Nftables
  • Origami
  • PackageDev
  • PowerShell
  • SideBarEnhancements
  • SublimeLinter
  • SublimeLinter-contrib-PSScriptAnalyzer
  • SublimeLinter-luacheck
  • SublimeLinter-shellcheck
  • Terminus
  • Theme - Monokai Pro
  • TOML

Key Bindings

Navigate to Preferences > Key Bindings.

[
	{
		"keys": ["ctrl+alt+t"],
		"command": "terminus_open",
		"args": {
			"post_window_hooks": [
				["carry_file_to_pane", {"direction": "down"}]
			]
		}
	},

	{
		"keys": ["ctrl+alt+l"],
		"command": ["sublime_linter_lint", "sublime_linter_panel_toggle"],
	},
]

Settings

Navigate to Preferences > Settings.

{
	"theme": "Adaptive.sublime-theme",
	"hardware_acceleration": "opengl",
	"block_caret": true,
	"caret_style": "phase",
	"fade_fold_buttons": false,
	"font_face": "Agave",
	"font_size": 15,
	"font_options": [
		"directwrite",
		"subpixel_antialias",
		"no_italic",
	],
	"highlight_line": true,
	"line_padding_top": 2,
	"line_padding_bottom": 2,
	"rulers": [80, 120],
	"spell_check": true,
	"spelling_selector": "source comment - source comment.block.preprocessor",
	"ignored_packages":
	[
		"Vintage",
	],
	"color_scheme": "Monokai Pro (Filter Machine).sublime-color-scheme",
	"draw_minimap_border": true,
	"always_show_minimap_viewport": true,
	"show_encoding": true,
	"show_line_endings": true,
	"added_words":
	[
		"luacheck",
		"addon",
	],
}

Settings - Terminus

Navigate to Preferences > Package Settings > Terminus > Settings to open the settings for the Terminus package.

{
	"default_config": {
		"windows": "MSYS2",
	},
	"shell_configs": [
		{
			"name": "MSYS2",
			"cmd": [
				"cmd.exe",
				"/c",
				"C:\\msys64\\msys2_shell.cmd -defterm -here -no-start -msys -shell fish"
			],
			"env": {},
			"enable": true,
			"platforms": ["windows"],
		}
	],
	"theme": "user",
}

Settings - SublimeLinter

Navigate to Preferences > Package Settings > SublimeLinter > Settings to open the settings for the SublimeLinter package.

// SublimeLinter Settings - User
{
	// "debug": true,

	"gutter_theme": "ProjectIcons",
	"linters": {

	},
	"paths": {
		"windows": [
			"%ProgramFiles%\\Sublime Text\\"
		],
	},
	"styles": [
		{
			"types": ["warning"],
			"icon": "warning",
		},
		{
			"types": ["error"],
			"icon": "error",
		},
	]
}
Clone this wiki locally