SlideShare une entreprise Scribd logo
1  sur  22
Télécharger pour lire hors ligne
Ease Your Dev Life
With the tools you use




                A Sublime Text 2 Story
                                   Featuring
             Ninio (http://shtrak.eu/ninio)
              Shtrak! (http://shtrak.eu/it)
                Init Lab (http://initlab.org)
Sublime Text 2
The cool kids’ text editor
Agenda
1. Tuning Sublime to make our life better
  1. How to find settings on your own
2. Go To Anything
  1. Go To Anything in settings
3. Installing The Package Control
4. Shortcuts, Shortcuts, Shortcuts
Tuning Sublime to make our life
            better
   User’s settings can be edited from:
     Preferences > Settings – User
Tuning Sublime to make our life
              better
//My most vital settings
{
     "bold_folder_labels": true,
     "caret_style": "phase",
     "highlight_line": true,
     "highlight_modified_tabs": true,
     "word_wrap": true
}
Tuning Sublime to make our life
            better
  Default settings can be edited from:
   Preferences > Settings – Default
Tuning Sublime to make our life
            better
  Default settings can be edited from:
   Preferences > Settings – Default


 Looky but no touchy!
Go To Anything

    Ctrl+P
Go To Anything

:123 //to go to row 123 of the current document
@myFunc //to go to the definition of function
myFunc
function.php //to go to the file function.php of
the opened project/folder
themeshtrastyle.css:190 //to go to row 190 of
style.css in the folder themes/shtrak/
Go To Anything for Settings

         Ctrl+Shift+P
Go To Anything for Settings

Simply type and browse the setting menus of
sublime
Installing Package Control

Do it from here:
http://wbond.net/sublime_packages/package_c
ontrol/installation
Installing Package Control
The steps:
ctrl+`
Paste: import urllib2,os; pf='Package Control.sublime-
package'; ipp=sublime.installed_packages_path();
os.makedirs(ipp) if not os.path.exists(ipp) else None;
urllib2.install_opener(urllib2.build_opener(urllib2.ProxyH
andler()));
open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http
://sublime.wbond.net/'+pf.replace(' ','%20')).read());
print('Please restart Sublime Text to finish installation')
Restart Sublime.
Finding treasures via the
           Package Control
Ctrl+Shift+P
Shortcuts

Don’t touch the mouse!
Shortcuts (Code)

Ctrl+X – Cut current line
Ctrl+C – Copy current line
Ctrl+Shift+V – Paste and keep indention
Ctrl+Shift+Up/Down – Move current line up/down
Tab (or Ctrl+]) – Indent
Shift+Tab (or Ctrl+[) – Deindent
Ctrl+/ – Toggle comment
Ctrl+Shift+/ – Toggle block comment
Shortcuts (Multiple Cursors)

Ctrl+L – Select current line (repeat for next line)
Ctrl+Click – Add a cursor to that position
Ctrl+Shift+L – Place cursors to the end of each
row
Ctrl+D – Select the current word and every next
occurancy of the selected thing
Shortcuts (Searching)

Ctrl+F – Open Search
Ctrl+I – Open Instant Search
Ctrl+Shift+F – Search in all the files in the project
Ctrl+H – Search and replace
Shortcuts (Tabs)

Ctrl+W – Close current file
Ctrl+N – Open new file
Ctrl+Shift+T – Open the last opened tab
Alt+[1..9] – Switch to the number of the tab
Ctrl+PageUp/PageDown – Switch between tabs
Ctrl+Tab – Switch between last viewed tabs
Shortcuts (Layouts)

Alt+Shift+1[2,3,4,5] – Changes the layout of the
editor
Ctrl+[1,2,3,4] – Jump to group in the changed
layout
Ctrl+Shift+[1,2,3,4] – Move the current file to
the group
Shortcuts (Bookmarks)

Ctrl+F2– Toggle bookmark
F2 – Go to next bookmark
Shift+F2 – Go to previous bookmark
Ctrl+Shift+F2 – Clear all bookmarks
Keep practicing!
  And thank you!




       This was A Sublime Text 2 Story
                                 Featuring
           Ninio (http://shtrak.eu/ninio)
            Shtrak! (http://shtrak.eu/it)
              Init Lab (http://initlab.org)

Contenu connexe

Tendances

Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeQasim Khawaja
 
Php Server Var
Php Server VarPhp Server Var
Php Server Vararvind34
 
Course 102: Lecture 7: Simple Utilities
Course 102: Lecture 7: Simple Utilities Course 102: Lecture 7: Simple Utilities
Course 102: Lecture 7: Simple Utilities Ahmed El-Arabawy
 
Learn to Write ur first Shell script
Learn to Write ur first Shell scriptLearn to Write ur first Shell script
Learn to Write ur first Shell scriptHanan Nmr
 
Path::Tiny
Path::TinyPath::Tiny
Path::Tinywaniji
 
Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent cardBui Van Cuong
 
Linux shell env
Linux shell envLinux shell env
Linux shell envRahul Pola
 
Quick start bash script
Quick start   bash scriptQuick start   bash script
Quick start bash scriptSimon Su
 

Tendances (14)

File::CleanupTask
File::CleanupTaskFile::CleanupTask
File::CleanupTask
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In Practice
 
1. Hello Popescu in Laravel
1. Hello Popescu in Laravel1. Hello Popescu in Laravel
1. Hello Popescu in Laravel
 
Html
HtmlHtml
Html
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Php Server Var
Php Server VarPhp Server Var
Php Server Var
 
Course 102: Lecture 7: Simple Utilities
Course 102: Lecture 7: Simple Utilities Course 102: Lecture 7: Simple Utilities
Course 102: Lecture 7: Simple Utilities
 
Basics of Unix Adminisration
Basics  of Unix AdminisrationBasics  of Unix Adminisration
Basics of Unix Adminisration
 
Learn to Write ur first Shell script
Learn to Write ur first Shell scriptLearn to Write ur first Shell script
Learn to Write ur first Shell script
 
Path::Tiny
Path::TinyPath::Tiny
Path::Tiny
 
Basic basic solaris quick referent card
Basic basic solaris quick referent cardBasic basic solaris quick referent card
Basic basic solaris quick referent card
 
Linux shell env
Linux shell envLinux shell env
Linux shell env
 
Quick start bash script
Quick start   bash scriptQuick start   bash script
Quick start bash script
 
Drupal from scratch
Drupal from scratchDrupal from scratch
Drupal from scratch
 

En vedette

Sublime PowerPoint
Sublime  PowerPointSublime  PowerPoint
Sublime PowerPointjdonahue135
 
Seeking Transcendence: Demystifying Transmedia for Game Developers
Seeking Transcendence: Demystifying Transmedia for Game DevelopersSeeking Transcendence: Demystifying Transmedia for Game Developers
Seeking Transcendence: Demystifying Transmedia for Game DevelopersRaphael van Lierop
 
Ingeniería inversa y reingeniería de software
Ingeniería inversa y reingeniería de softwareIngeniería inversa y reingeniería de software
Ingeniería inversa y reingeniería de softwareMoises Medina
 

En vedette (7)

Sublime PowerPoint
Sublime  PowerPointSublime  PowerPoint
Sublime PowerPoint
 
Seeking Transcendence: Demystifying Transmedia for Game Developers
Seeking Transcendence: Demystifying Transmedia for Game DevelopersSeeking Transcendence: Demystifying Transmedia for Game Developers
Seeking Transcendence: Demystifying Transmedia for Game Developers
 
Apuntes: SublimeText 3
Apuntes: SublimeText 3Apuntes: SublimeText 3
Apuntes: SublimeText 3
 
Notepad ++
Notepad ++Notepad ++
Notepad ++
 
Proyecto de reingenieria de software
Proyecto de reingenieria  de softwareProyecto de reingenieria  de software
Proyecto de reingenieria de software
 
Ingeniería inversa y reingeniería de software
Ingeniería inversa y reingeniería de softwareIngeniería inversa y reingeniería de software
Ingeniería inversa y reingeniería de software
 
On the sublime
On the sublime On the sublime
On the sublime
 

Similaire à Ease your dev life with Sublime Text 2

[PyConTW 2013] Write Sublime Text 2 Packages with Python
[PyConTW 2013] Write Sublime Text 2 Packages with Python[PyConTW 2013] Write Sublime Text 2 Packages with Python
[PyConTW 2013] Write Sublime Text 2 Packages with PythonJenny Liang
 
Sublime text-gdg-algiers-2015
Sublime text-gdg-algiers-2015Sublime text-gdg-algiers-2015
Sublime text-gdg-algiers-2015ismnoiet
 
Chef for beginners module 2
Chef for beginners   module 2Chef for beginners   module 2
Chef for beginners module 2Chef
 
St. Louis Days of .NET 2013: Visual Studio Tips and Tricks
St. Louis Days of .NET 2013: Visual Studio Tips and TricksSt. Louis Days of .NET 2013: Visual Studio Tips and Tricks
St. Louis Days of .NET 2013: Visual Studio Tips and TricksKevin Grossnicklaus
 
A gentle intro of Apache zeppelin
A gentle intro of Apache zeppelinA gentle intro of Apache zeppelin
A gentle intro of Apache zeppelinAhyoung Ryu
 
exp-7-pig installation.pptx
exp-7-pig installation.pptxexp-7-pig installation.pptx
exp-7-pig installation.pptxvishal choudhary
 
DevOps(4) : Ansible(2) - (MOSG)
DevOps(4) : Ansible(2) - (MOSG)DevOps(4) : Ansible(2) - (MOSG)
DevOps(4) : Ansible(2) - (MOSG)Soshi Nemoto
 
A "Box" Full of Tools and Distros
A "Box" Full of Tools and DistrosA "Box" Full of Tools and Distros
A "Box" Full of Tools and DistrosDario Faggioli
 
Tosca Properties and Standard module Tips.PDF
Tosca Properties and Standard module Tips.PDFTosca Properties and Standard module Tips.PDF
Tosca Properties and Standard module Tips.PDFVijayaragavan k 🌩️
 
pyconjp2015_talk_Translation of Python Program__
pyconjp2015_talk_Translation of Python Program__pyconjp2015_talk_Translation of Python Program__
pyconjp2015_talk_Translation of Python Program__Renyuan Lyu
 
Pilot Tech Talk #10 — Practical automation by Kamil Cholewiński
Pilot Tech Talk #10 — Practical automation by Kamil CholewińskiPilot Tech Talk #10 — Practical automation by Kamil Cholewiński
Pilot Tech Talk #10 — Practical automation by Kamil CholewińskiPilot
 
Source Code Management Slides
Source Code Management SlidesSource Code Management Slides
Source Code Management Slidesdaschuck
 

Similaire à Ease your dev life with Sublime Text 2 (20)

[PyConTW 2013] Write Sublime Text 2 Packages with Python
[PyConTW 2013] Write Sublime Text 2 Packages with Python[PyConTW 2013] Write Sublime Text 2 Packages with Python
[PyConTW 2013] Write Sublime Text 2 Packages with Python
 
Sublime text-gdg-algiers-2015
Sublime text-gdg-algiers-2015Sublime text-gdg-algiers-2015
Sublime text-gdg-algiers-2015
 
Chef for beginners module 2
Chef for beginners   module 2Chef for beginners   module 2
Chef for beginners module 2
 
St. Louis Days of .NET 2013: Visual Studio Tips and Tricks
St. Louis Days of .NET 2013: Visual Studio Tips and TricksSt. Louis Days of .NET 2013: Visual Studio Tips and Tricks
St. Louis Days of .NET 2013: Visual Studio Tips and Tricks
 
A gentle intro of Apache zeppelin
A gentle intro of Apache zeppelinA gentle intro of Apache zeppelin
A gentle intro of Apache zeppelin
 
Linux Fundamentals
Linux FundamentalsLinux Fundamentals
Linux Fundamentals
 
ICT .pptx
ICT .pptxICT .pptx
ICT .pptx
 
exp-7-pig installation.pptx
exp-7-pig installation.pptxexp-7-pig installation.pptx
exp-7-pig installation.pptx
 
Linux 101
Linux 101Linux 101
Linux 101
 
DevOps(4) : Ansible(2) - (MOSG)
DevOps(4) : Ansible(2) - (MOSG)DevOps(4) : Ansible(2) - (MOSG)
DevOps(4) : Ansible(2) - (MOSG)
 
Extending NetBeans IDE
Extending NetBeans IDEExtending NetBeans IDE
Extending NetBeans IDE
 
A "Box" Full of Tools and Distros
A "Box" Full of Tools and DistrosA "Box" Full of Tools and Distros
A "Box" Full of Tools and Distros
 
Pythonpresent
PythonpresentPythonpresent
Pythonpresent
 
Tosca Properties and Standard module Tips.PDF
Tosca Properties and Standard module Tips.PDFTosca Properties and Standard module Tips.PDF
Tosca Properties and Standard module Tips.PDF
 
VersionEEring
VersionEEringVersionEEring
VersionEEring
 
pyconjp2015_talk_Translation of Python Program__
pyconjp2015_talk_Translation of Python Program__pyconjp2015_talk_Translation of Python Program__
pyconjp2015_talk_Translation of Python Program__
 
Change man
Change manChange man
Change man
 
Mac os-x-cheat-sheet
Mac os-x-cheat-sheetMac os-x-cheat-sheet
Mac os-x-cheat-sheet
 
Pilot Tech Talk #10 — Practical automation by Kamil Cholewiński
Pilot Tech Talk #10 — Practical automation by Kamil CholewińskiPilot Tech Talk #10 — Practical automation by Kamil Cholewiński
Pilot Tech Talk #10 — Practical automation by Kamil Cholewiński
 
Source Code Management Slides
Source Code Management SlidesSource Code Management Slides
Source Code Management Slides
 

Dernier

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 

Dernier (20)

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 

Ease your dev life with Sublime Text 2

  • 1. Ease Your Dev Life With the tools you use A Sublime Text 2 Story Featuring Ninio (http://shtrak.eu/ninio) Shtrak! (http://shtrak.eu/it) Init Lab (http://initlab.org)
  • 2. Sublime Text 2 The cool kids’ text editor
  • 3. Agenda 1. Tuning Sublime to make our life better 1. How to find settings on your own 2. Go To Anything 1. Go To Anything in settings 3. Installing The Package Control 4. Shortcuts, Shortcuts, Shortcuts
  • 4. Tuning Sublime to make our life better User’s settings can be edited from: Preferences > Settings – User
  • 5. Tuning Sublime to make our life better //My most vital settings { "bold_folder_labels": true, "caret_style": "phase", "highlight_line": true, "highlight_modified_tabs": true, "word_wrap": true }
  • 6. Tuning Sublime to make our life better Default settings can be edited from: Preferences > Settings – Default
  • 7. Tuning Sublime to make our life better Default settings can be edited from: Preferences > Settings – Default Looky but no touchy!
  • 8. Go To Anything Ctrl+P
  • 9. Go To Anything :123 //to go to row 123 of the current document @myFunc //to go to the definition of function myFunc function.php //to go to the file function.php of the opened project/folder themeshtrastyle.css:190 //to go to row 190 of style.css in the folder themes/shtrak/
  • 10. Go To Anything for Settings Ctrl+Shift+P
  • 11. Go To Anything for Settings Simply type and browse the setting menus of sublime
  • 12. Installing Package Control Do it from here: http://wbond.net/sublime_packages/package_c ontrol/installation
  • 13. Installing Package Control The steps: ctrl+` Paste: import urllib2,os; pf='Package Control.sublime- package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyH andler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http ://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation') Restart Sublime.
  • 14. Finding treasures via the Package Control Ctrl+Shift+P
  • 16. Shortcuts (Code) Ctrl+X – Cut current line Ctrl+C – Copy current line Ctrl+Shift+V – Paste and keep indention Ctrl+Shift+Up/Down – Move current line up/down Tab (or Ctrl+]) – Indent Shift+Tab (or Ctrl+[) – Deindent Ctrl+/ – Toggle comment Ctrl+Shift+/ – Toggle block comment
  • 17. Shortcuts (Multiple Cursors) Ctrl+L – Select current line (repeat for next line) Ctrl+Click – Add a cursor to that position Ctrl+Shift+L – Place cursors to the end of each row Ctrl+D – Select the current word and every next occurancy of the selected thing
  • 18. Shortcuts (Searching) Ctrl+F – Open Search Ctrl+I – Open Instant Search Ctrl+Shift+F – Search in all the files in the project Ctrl+H – Search and replace
  • 19. Shortcuts (Tabs) Ctrl+W – Close current file Ctrl+N – Open new file Ctrl+Shift+T – Open the last opened tab Alt+[1..9] – Switch to the number of the tab Ctrl+PageUp/PageDown – Switch between tabs Ctrl+Tab – Switch between last viewed tabs
  • 20. Shortcuts (Layouts) Alt+Shift+1[2,3,4,5] – Changes the layout of the editor Ctrl+[1,2,3,4] – Jump to group in the changed layout Ctrl+Shift+[1,2,3,4] – Move the current file to the group
  • 21. Shortcuts (Bookmarks) Ctrl+F2– Toggle bookmark F2 – Go to next bookmark Shift+F2 – Go to previous bookmark Ctrl+Shift+F2 – Clear all bookmarks
  • 22. Keep practicing! And thank you! This was A Sublime Text 2 Story Featuring Ninio (http://shtrak.eu/ninio) Shtrak! (http://shtrak.eu/it) Init Lab (http://initlab.org)