markdown 我的Sublime Text 3设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 我的Sublime Text 3设置相关的知识,希望对你有一定的参考价值。

## Theme

[Material Theme][link-theme]

[link-theme]: https://github.com/equinusocio/material-theme

## Packages

- AutoFileName
- CodeComplice
- Color Highlighter
- CSS3
- CSSFontFamily
- DocBlockr
- EditorConfig
- Emmet
- HTML5
- HTMLAttributes
- jQuery
- Laravel 5 Artisan
- Laravel 5 Snippets
- Laravel Blade Highlighter
- Local History
- Markdown Preview
- Open-Include
- PHP Companion
- PHP Getters and Setters
- PHP-Twig
- SideBarEnhancements
- Stylus
- SublimeLinter
- SublimeLinter-php
- Sync Settings
- WakaTime

## User Settings

```json
{
	"always_show_minimap_viewport": true,
	"binary_file_patterns":
	[
		"*.dds",
		"*.eot",
		"*.gif",
		"*.ico",
		"*.jar",
		"*.jpeg",
		"*.jpg",
		"*.pdf",
		"*.png",
		"*.swf",
		"*.tga",
		"*.ttf",
		"*.zip",
		"dist/**",
		"node_modules/**"
	],
	"bold_folder_labels": false,
	"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
	"font_options":
	[
		"gray_antialias",
		"subpixel_antialias"
	],
	"font_size": 9,
	"ignored_packages":
	[
		"Vintage"
	],
	"indent_guide_options":
	[
		"draw_normal",
		"draw_active"
	],
	"line_padding_bottom": 3,
	"line_padding_top": 3,
	"material_theme_contrast_mode": true,
	"material_theme_panel_separator": true,
	"material_theme_tabs_autowidth": true,
	"overlay_scroll_bars": "enabled",
	"theme": "Material-Theme-Darker.sublime-theme",
	"translate_tabs_to_spaces": true
}

```

## User Key Bindings

```json
[
	{ "keys": ["ctrl+/"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
	{ "keys": ["ctrl+;"], "command": "toggle_comment", "args": { "block": false } },
	{ "keys": ["ctrl+shift+;"], "command": "toggle_comment", "args": { "block": true } },
	{ "keys": ["f2"], "command": "side_bar_rename" },
	{ "keys": ["f9"], "command": "expand_fqcn" },
	{ "keys": ["f10"], "command": "find_use" },
	{ "keys": ["f7"], "command": "insert_php_constructor_property" },
	{ "keys": ["f3"], "command": "implement" }
]
```

## Snippets

### 1. Class Snippet

```xml
<snippet>
    <content><![CDATA[
class ${1:DummyClass}
{
    ${2}
}
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>class</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>
```

### 2. Construct Snippet

```xml
<snippet>
    <content><![CDATA[
/**
 * Create a new class instance.
 *
 * @return void
 */
public function __construct(${1})
{
    ${2}
}
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>_c</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>
```

### 3. Inherit Doc Snippet

```xml
<snippet>
    <content><![CDATA[
/**
 * {@inheritdoc}
 */
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>@idc</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>
```

### 4. Method Snippet

```xml
<snippet>
    <content><![CDATA[
${1:public} function ${2}(${3})
{
    ${4}
}
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>met</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>
```

### 5. Laravel Route Get Snippet

```xml
<snippet>
    <content><![CDATA[
Route::get('${1:/}', '${2:Dummy}Controller@${3:dummyMethod}')->name('${4:dummy.name}');
]]></content>
    <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
    <tabTrigger>rtg</tabTrigger>
    <!-- Optional: Set a scope to limit where the snippet will trigger -->
    <scope>source.php</scope>
</snippet>
```

以上是关于markdown 我的Sublime Text 3设置的主要内容,如果未能解决你的问题,请参考以下文章

Sublime Text 3预览Markdown

markdown Sublime Text 3 - 快捷方式

markdown Sublime Text 3.md

markdown 在Ubuntu上安装Sublime Text 3。

如何使用Sublime Text 3作为Markdown编辑器

使用Sublime Text 3进行Markdown编辑+实时预览