Skip to content

Instantly share code, notes, and snippets.

@ponsuke0531
Last active October 1, 2020 12:35
Show Gist options
  • Save ponsuke0531/cf6b7408cebc40b362b09b9ce541410d to your computer and use it in GitHub Desktop.
Save ponsuke0531/cf6b7408cebc40b362b09b9ce541410d to your computer and use it in GitHub Desktop.
Sublime Text でやりたいことをやるためのリンク集 ref: https://qiita.com/ponsuke0531/items/781d38b4a7cbc8075ac2
# [username][password][proxy_server][port]を環境と認証情報に置き換えてからConsoleに入れる
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler({"http": "http://[username]:[password]@[proxy_server]:[port]", "https": "https://[username]:[password]@[proxy_address]:[port]"})) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
"draw_indent_guides": true,
"indent_guide_options": ["draw_normal"]
# [username][password][proxy_server][port]を環境と認証情報に置き換えてからConsoleに入れる
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler({"http": "http://[username]:[password]@[proxy_server]:[port]", "https": "https://[username]:[password]@[proxy_address]:[port]"})) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Ctrl + Shift + P > 「remove」で検索 > [Package Control: Remove Package] > アンインストールするプラグインを選択してEnter
"auto_find_in_selection": true,
1つのファイルを縦2分割してみたい
1. Alt + Shift + 2(画面が縦2分割になる)
2. [File] > [New View Into File](1つのファイルがタブ2つになる)
3. タブを分割したところへドラックアンドドロップ
"show_full_path": true
"draw_indent_guides": true,
"indent_guide_options": ["draw_normal"]
"highlight_line":true
"auto_find_in_selection": true,
1つのファイルを縦2分割してみたい
1. Alt + Shift + 2(画面が縦2分割になる)
2. [File] > [New View Into File](1つのファイルがタブ2つになる)
3. タブを分割したところへドラックアンドドロップ
1つのファイルを縦2分割してみたい
1. Alt + Shift + 2(画面が縦2分割になる)
2. [File] > [New View Into File](1つのファイルがタブ2つになる)
3. タブを分割したところへドラックアンドドロップ
"draw_indent_guides": true,
"indent_guide_options": ["draw_normal"]
"highlight_line":true
# 全部OFF
"trailing_spaces_trim_on_save": false,
"trim_automatic_white_space": false,
"trim_trailing_white_space_on_save": false,
// These settings override both User and Default settings for the Python syntax
{
// タブサイズ
"tab_size": 4,
// タブでスペース挿入
"translate_tabs_to_spaces": true
}
{
"cmd": ["/Library/Frameworks/Python.framework/Versions/3.6/bin/python3", "-u", "$file"],
"selector": "source.python",
"file_regex": "file \"(...*?)\", line ([0-9]+)",
"env": {"LANG": "ja_JP.UTF-8"},
}
大文字にする
Ctrl + K -> Ctrl + U
小文字にする
Ctrl + K -> Ctrl + L
大文字化 : Ctrl + K, Ctrl +U
小文字化 : Ctrl + K, Ctrl +L
urllib.error.HTTPError: HTTP Error 407: Proxy Authentication Required (.......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment