sublimetext rocks!
原来页面都放到 gh-pages 分支上,这样就可以在 happypeter.github.io/happysublime 访问到了。因为访问比较慢,所以搬家到了 http://c.haoduoshipin.com/happysublime/ 。代码也就放到了 master 分支上。
sublime text tutorial with happypeter
Home Page: http://c.haoduoshipin.com/happysublime/
sublimetext rocks!
原来页面都放到 gh-pages 分支上,这样就可以在 happypeter.github.io/happysublime 访问到了。因为访问比较慢,所以搬家到了 http://c.haoduoshipin.com/happysublime/ 。代码也就放到了 master 分支上。
https://laracasts.com/series/server-management-with-forge
现在时以打开网站还要再点一下才能看见目录,太麻烦
视频不着急出
awesome
在 sidebar 和文本中都保持很大的垂直间距,仿效 laracasts
首先安装:https://github.com/thinkpixellab/flatland
在 settings-user 中放入
"theme": "Flatland Dark.sublime-theme",
"translate_tabs_to_spaces": true,
"line_padding_bottom": 10,
"line_padding_top": 10,
change sidebar font
install "theme soda" via package control
on linux, go to ~/.config/sublime.../Theme../Soda/
change "Soda Light theme"
add to class: sidebar_lable
"font-size": 18,
but now I have to change the sidebar line-height as well
but I failed to change the line-height for sidebar labels
要想让边栏和标签字体都变大,可以把屏幕显示调低:1024x640
这个会比本来的 1280x800
update: sublime3 中,参考
http://stackoverflow.com/questions/18288870/sublime-text-3-how-to-change-the-font-size-of-the-file-sidebar
效果是完美的
emmet : html&css snippets
Settting User may have this package ignored, so uncomment that line
sass : .scss file format support
install package named “Erb" or sth
Key Binding User 中要做下面的设置
[
{ "keys": ["ctrl+shift+."], "command": "erb" },
{ "keys": ["shift+tab"], "command": "reindent" , "args": { "single_line": false } }
]
reindent use tab( rather than two spaces ), how to fix?
"translate_tabs_to_spaces": true
in Setting UserSettings User:
{
"color_scheme": "Packages/RailsCasts Colour
Scheme/RailsCastsColorScheme.tmTheme",
"font_face": "Courier New",
"font_size": 17.0,
"line_padding_bottom": 1, # 适当调节一下,有助于中文显示效果
"line_padding_top": 1,
"ignored_packages":
[
"Vintage"
],
"tab_size": 2,
"translate_tabs_to_spaces": true
}
wrap text in html tag
multipane
Alt-Shift-2 open second pane(Alt-Shift-1 go back to one pane mode)
Ctrl-1 Ctrl-2 to switch among the panes
edit misc
Ctrl-/ comment things
Ctrl-]/[ indent the line
Ctrl-L select the whole line(to delete or sth)
Ctrl-enter
ctrl-shift-. to get erb block, need to install sublimeerb first
Ctrl-j the line after will be joined, no need to pre select the two lines.
line
C-x delete the whole line
C-Shift-Enter insert line before
C-Shift-arrow move current line up/down
{ "keys": ["ctrl+alt+a"], "command": "move_to", "args": {"to": "eol", "extend": false} },
check edit-> line
select everything inside () [] ""
Ctrl-Shift-M
find
Ctrl-F: find
Ctrl-Alt-F: find and replace in current file
Ctrl-Shift-F: in a whole folder
Enter: find next
FLOW(for ubuntu): double-click a word -> Ctrl-F -> Enter to find next
tags
close a tag: Alt-.
add parent tag: Alt-shift-w
add parent tag with line break: Ctrl+Shift+g
select everything inside a tag: Ctrl-,
remove a tag: Emmet: remove tag, Ctrl+Shift+;
auto format code
peter@goodcat:~/.config/sublime-text-2$ cat Packages/User/Default
(Linux).sublime-keymap
[
{ "keys": ["shift+tab"], "command": "reindent" , "args": { "single_line": false } }
]
multi cursor :
Ctrl-D a replacement for my vim: /keyword -> cw ->n->.
search
Ctrl-I is a bit better than
Ctrl-F cause you don't need to hide
the search box by hiting esc, you can just hit Enter with Ctrl-I
Alt-Ctrl-n
di'
click into the last word in side '' then C-d-del todefault settings/vendor setting
touser setttings/my own settings
and do the customization here.Sublime Text 2 – Useful Shortcuts (Ubuntu)
https://gist.github.com/Belgand/2856947
add sublime to quick launcher ubuntu:
vim ~/.local/share/applications/application_name.desktop
chmod +x
Ctrl+L 选择整行(按住-继续选择下行)
Ctrl+Shift+D 复制光标所在整行,插入在该行之前
Ctrl+J 合并行(已选择需要合并的多行时)
Ctrl+KU 改为大写
Ctrl+KL 改为小写
Ctrl+D 选词 (按住-继续选择下个相同的字符串)
Ctrl+M 光标移动至括号内开始或结束的位置
Ctrl+Shift+M 选择括号内的内容(按住-继续选择父括号)
Ctrl+/ 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)
Ctrl+Shift+/ 注释已选择内容
Ctrl+Z 撤销
Ctrl+Y 恢复撤销
Ctrl+M 光标跳至对应的括号
Alt+. 闭合当前标签
Ctrl+Shift+A 选择光标位置父标签对儿
Ctrl+Shift+[ 折叠代码
Ctrl+Shift+] 展开代码
Ctrl+KT 折叠属性
Ctrl+K0 展开所有
Ctrl+U 软撤销
Ctrl+T 词互换
Tab 缩进 自动完成
Shift+Tab 去除缩进
Ctrl+Shift+↑ 与上行互换
Ctrl+Shift+↓ 与下行互换
Ctrl+K Backspace 从光标处删除至行首
Ctrl+Enter 光标后插入行
Ctrl+Shift+Enter 光标前插入行
Ctrl+F2 设置书签
F2 下一个书签
Shift+F2 上一个书签
column select
shift+rightmouse
package controrl
https://sublime.wbond.net/
shift-control-p->"install" ->"package name"
emmet
http://css-tricks.com/video-screencasts/129-emmet-awesome/?play=true
div.peter
html:5
a{item}
lorem35
css vendor prefix: -box-shandow, -transition
ctrl+shift+; : remove tags
install theme on ubuntu
/home/peter/.config/sublime-text-2/Packages/User/ is the place to put your
tmTheme files, then you can get it at Preference->Color Theme -> User
railscasts theme download: http://railscasts.com/about
you can also install with Package Control, search: railscasts
// "save_on_focus_lost": true,
"trim_trailing_white_space_on_save": true
这两个都是非常好用的功能,但是一块用就不行。每次我去浏览器里看一下效果,回来我的缩进就丢失了。
reindent 好像有问题:
{ "keys": ["shift+tab"], "command": "reindent" , "args": { "single_line": false } }
这个非常好用啊,粘贴代码过来的时候尤其有用。
但是一遇到 erb 马上就变的不正常了。
open in browser, new build system
{
"cmd": ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.html"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.