Sublime Text 2

서브라임 텍스트 2에 대한 수업입니다.

Sublime Text 2 서브라임 텍스트 2에 대한 수업입니다.

매크로

매크로란?

Macro. 사용자의 동작을 기록해서 나중에 재사용 할 수 있도록 하는 방법으로 반복되는 작업을 줄여준다.

매크로 사용법

메뉴 Tools > Record Macro 를 선택한다. 메뉴 Tools > Stop Recording Macro를 선택하기 전까지 사용자의 행동이 기록된다. 저장된 매크로를 실행하려면 메뉴 Tools > Playback Macro 를 선택한다. 방금 만든 매크로를 이후에도 사용하려면 메뉴 Tools > Save Macro 를 선택하고 파일로 저장한다. 

매크로 단축키 만들기

매크로는 단축키와 결합했을 때 보다 유용해진다. 매크로에 단축키를 연결하려면 이렇게 한다.메뉴 Preferences > Key Bindings - User 를 선택한다. 여기에 메크로를 등록한다. 이 설정 파일은 JSON의 문법을 준수해야 한다. (JSON이란)

아래 파일은 매크로에 단축키를 부여하는 예제다. 

{ "keys": ["ctrl+;"], "command": "run_macro_file", "args": {"file": "Packages/User/return.sublime-macro"} }
  • key : 사용할 키보드
    • Win, Linux : Ctrl, Mac : Super
  • command : 해당 키보드가 어떤 기능과 결합 할 것인지를 지정, 매크로는 run_macro_file로 해야 한다. 
  • "args" : {"file":파일명} : 매크로 파일의 경로를 지정한다. 

예제 - 코드의 끝에 ';'를 붙이고 줄바꿈하는 매크로

return.sublime-macro

[
	{
		"args":
		{
			"extend": false,
			"to": "eol"
		},
		"command": "move_to"
	},
	{
		"args":
		{
			"characters": ";"
		},
		"command": "insert"
	},
	{
		"args":
		{
			"characters": "\n"
		},
		"command": "insert"
	}
]

단축키

{ "keys": ["ctrl+;"], "command": "run_macro_file", "args": {"file": "Packages/User/return.sublime-macro"} }

댓글

댓글 본문
  1. thomaslist
    https://www.laurenralphlauren.us Reasonable Price Ralph Lauren
    https://www.coachcolorful.us.com Coach Purses Discount
    https://www.polooutlet.uk Ralph Lauren Outlet Factory Online Store
    https://www.katespadenew.com Kate Spade Shoulder Bags
    https://www.atlanticairjordan.com Exclusive Range Air Jordan
    https://www.katespadeoutlet-store.us.com Kate Spade new collection
    https://www.poloralphlaurenbusiness.com Polo Ralph Lauren New York Discount
    https://www.newcoachoutlet.com Coach sale New York
    https://www.poloralphlaurenpolo.uk.com Ralph Lauren Cheap Prices
    https://www.authenticadidas.com USA Adidas NMD Boost For Women
    https://www.coachfactory.uk Coach Crossbody UK Online Sale
    https://www.edhardysoriginals.com ED Hardy Shopping
    https://www.ralphlaurenpopular.com Buy Real Ralph Lauren Track Suits
    https://www.airmaxsurprise.com Nike Air Max 90 For Women
    https://www.edhardys.us Love Kills Slowly T Shirts
    https://www.superstaradidas.us.com Adidas Boost Outlet Sale
    https://www.jordanshoesforsale.us.com Outlet Nike SB Dunk Online
    https://www.pandorahearts.us.com Pandora Charms Quality And Quantity
    https://www.poloralphoutlet.us.com Polo Ralph Lauren Plus Size
    https://www.salomonshoes.in.net Salomon Speedcross Plus
    https://www.champions.us.com Champion Short T Shirt
    https://www.air-max2018.us.com Fashion Air Max 97 Store
    https://www.authenticgoldengoose.com Large Discount Golden Goose Francy
    https://www.offwhitetshirt.us.com OFF White USA Top Brand Wholesale Online
    https://www.edhardy.org.uk Ed Hardy Short T Shirts UK Outlet
    https://www.coachsurprise.us.com Coach Handbags Outlet Online
    https://www.nikeshoesoutlet.us.org Nike LeBron Great Deals
    https://www.coachoutlet-handbags.com Coach bags internship
    https://www.adidasyeezyboost-350.us.com Discounted Adidas Falcon
    https://www.cheap-jordansshoes.us.com Nike Air Jordan Sport
    https://www.supremeclothingonline.us.com Mens Supreme Clothing
    https://www.adidasoriginals.in.net Adidas NMD Boost USA Cheap Sale
    https://www.airmax-97.us.com Nike Air Max Plus USA Fashion
    https://www.coachus.us.com Coach Wallets outlet online official
    https://www.donedhardy.us.com Sale Ed Hardy retailer
    https://www.usapandorauk.com Large Discount Pandora Bracelets
    https://www.polooutlet.us.com Cheap Clothes Women Ralph Lauren
    https://www.ed-hardy.uk.com Ed Hardy T Shirts Online
    https://www.multigroundboots.com Special Soccer Offers
    https://www.authentic-boost.com Lowest Price Adidas NMD Boost
    https://www.airjordanmid.com Air Jordan Low For Cheap
    https://www.coach-bags.org pink Coach Womens
    https://www.polorlpony.com Polo Ralph Lauren Pony Sale USA
    https://www.coach-factoryoutletstore.com coach outlet stores online
    https://www.ralphlaurenclassic.org.uk Polo Ralph Lauren Store Online
    https://www.edhardyoriginals.top Ed Hardy Hoodies
    https://www.poloralphlaurensport.com Polo Ralph Lauren Black White
    https://www.coachfactory-outlet.com coach handbags womens
    https://www.atlanticralphlauren.com Polo Ralph Lauren Hot Sale
    https://www.championoutlet.us.com Champion Factory Outlet Price
    https://www.atlantichogan.com Hogan Sneakers Reasonable Sale Price
    https://www.atlanticcoach.co.uk Coach Shoulder For Women
    https://www.edhardy.us.org Ed Hardy Hoodies
    https://www.palace.us.com Palace Jackets Outlet UK
    https://www.katespademore.com Kate Spade Wide Range
    https://www.scarpehogans.it Unique Hogan Sneakers
    https://www.deepedhardy.com ED Hardy London And New York
    https://www.salomonfrance.com Salomon Speedcross GTX for men
    https://www.pacificsneakers.com Nike Air Jordan Open Store
    https://www.ggdbitaly.com Golden Goose Sneakers White
    https://www.nike-factory.us.com Air Max 720 USA Online
    https://www.adidas.in.net Newest Adidas Ultra Boost
    https://www.ralphlaurenponyoutlet.com Cheapest Polo Ralph Lauren Price
    https://www.airjordan4.us.com Nike Air Jordan New York
    https://www.katespadeoriginals.com Where To Buy Kate Spade Handbags
    https://www.adidas-nmds.us.com Adidas Yeezy Boost Sale
    https://www.katespadeoutletnewyork.us.com Kate Spade New Arrival
    https://www.airjordanshoes.in.net Home Nike Air Jordan Outlet
    https://www.poloralphlauren-sale.us.com Polo Ralph Lauren Factory Outlet
    https://www.specialairshoes.com By Fashion Nike Air Max 97
    https://www.ralphlaurenworldwide.com Discount Polo Ralph Lauren Clothing
    https://www.atlanticpandora.com Pandora Black Friday Outlet Online Store
    https://www.poloralphlaurenbrand.com Polo Ralph Lauren Competitive Price
    https://www.adidasmix.com Adidas Yeezy Real Boost 350
    https://www.lovekillsslowly.us Womens Ed Hardy Hoodies Sale
    https://www.ralphlaurencolorfuls.com Polo Ralph Lauren Authentic
    https://www.katespadestyle.com Kate Spade Handbags
    https://www.polooutletoutlet.us.com Timeless Polo Ralph Lauren Shorts Design
    https://www.prloutletclothing.com Shop Ralph Lauren Winter Clothes
    https://www.coachoutlet.org.uk Coach Outlet Hobo UK
    https://www.polooutletsfactorystore.us.com Large Discount Polo Ralph Lauren
    https://www.adidasrealboost.com Adidas Shoes USA Factory Outlet
    https://www.off-whiteitaly.com Off White Factory Store
    https://www.prloutlet.co.uk Polo Ralph Lauren quality guarantee
    https://www.polooutletstore.us.org PRL Jackets Outlet Locations
    https://www.katespadesale.us.com Kate Spade outlet shop online
    https://www.supremeny.us.com Supreme Sweatshirts Europe
    https://www.nikeoutletsfactory.us.com Nike Blazer USA Factory
    https://www.edhardysurprise.com Wholesale ED Hardy T-Shirts
    https://www.kate-spadeoutletstore.us.com Sale Online Kate Spade
    https://www.atlanticpolo.co.uk Ralph Lauren Polo Buy Online
    https://www.atlanticairmax.com Nike Air Max US In Store
    https://www.coachhandbagsoutlets.us.com New Arrival Coach
    https://www.pandoraholiday.com USA Pandora Best Sellers UK
    https://www.jordanshoes.in.net Nike Blazer Top Designer Collections
    https://www.justinairmax.com Nike Air VaporMax USA Online
  2. 너무나 감사합니다.
    질문이 있습니다. 매크로 생성시에 찾기,바꾸기 (정규식포함)는 기록이 안되는거 같은데요..
    방법이 없을까요? ^^;
  3. JustStudy
    고맙습니다
  4. 나무마루
    수강신청할 때 매크로 썼었는데...
  5. 매크로 기능 알아보려고 구글링했었는데 친절한 동영상 강의 정말 많이 배우고 있습니다.
    앞으로도 잘 부탁드립니다!!
  6. tmpId
    매크로 기능 소개 감사합니다.~
버전 관리
egoing
현재 버전
선택 버전
graphittie 자세히 보기