Sublime Text Basics: All the Best Features in One Video
HTML-код
- Опубликовано: 11 сен 2024
- Just installed Sublime Text 3 and now you're wondering what all the hype is about? Start here.
This video covers Sublime Text's 'killer features' - the practical tricks and commands that will make you faster, better, more powerful, and more efficient than you've ever been in another editor.
It doesn't matter whether you're a web developer, system administrator, devops engineer, or anyone else that works with plain text. When you've learned all the Sublime Text 3 tricks in this video, you'll be ready to get the most out of this awesome text editor.
1:03 Working with Projects
2:28 Managing Folders
2:52 Multiple Cursors
3:55 Multiple Select
4:35 Multi-Cursor Copy/Paste
6:28 GoTo Anything
9:26 The Sublime Text Command Palette
10:19 Find/Replace Across all Project Files
12:29 Installing Packages
14:14 Installing Themes
15:01 Amazing Plugin: Emmet -- Create HTML Markup with CSS Selectors
16:20 Settings: Configuring the Sublime Text Editor
17:08 Final Advice
17:53 Outtakes
More Videos
My step-by-step project-based Linux course for beginners: www.udemy.com/...
Free Linux Sysadmin Course Playlist: • The Linux Basics Cours...
DigitalOcean referral link: m.do.co/c/0380...
Patreon: / tutorialinux
Official Site & e-mail list: tutorialinux.com/
Twitter: / tutorialinux
Facebook: / tutorialinux
Podcast: kernelpanicpodc...
Here's a link to the project that you see me using in this video (An Ansible 2 course that I created for Packt Publishing): www.packtpub.c...
Also useful:
- *Ctrl+G* (go to line) opens the search with *_':'_* already inserted, so you just type the line number to go to and
- *Ctrl+Alt+Up/Down* creates new cursors in prev/next lines
- *Ctrl+MMB* creates new cursors just like the above, but it has one advantage: if you *Ctrl+MMB+drag up or down* it just makes more cursors, but when you also drag to the sides it selects text, and when it does that it also ignores empty lines, and that's quite useful if the lines you want to "multi-edit" aren't adjacent. If there's any empty space between them, then dragging a selection through there is much quicker than having to single click on many lines.
- *Shift+P -> ww -> enter* will let you quickly toggle word wrapping (just be mindful that it highlights "word wrap". It probably does, especially if you used this before). I use this a lot, as I also edit many non code files. In fact this comment was copied to and from ST before I posted it, because otherwise youtube screws up newlines... ST makes sure it doesn't.
- *The ST console* lets you use python. It's basically IDLE but more limited. You can use it as calculator or even for some more complex stuff. I'm not sure what is the shortcut though, because in my Portuguese keyboard it's Ctrl-Ç, and Ç doesn't exist in english afaik. (It's next to L though, so try that.)
- *You don't have to save files,* as ST, by default, keeps everything cached. So you can close the editor and reopen, and everything is like it was, saved or not. Besides the obvious, this is also really great for using ST for taking quick notes, without having to physically create new files or having to discard them when you close the editor.
- (EDIT) You can use unindented comments to create foldable sections in long blocks of code, if you need. This is possible because ST lets you fold pretty much any lines of any kind that have indented lines below them (except if they have only a one line block, in which case you can add an empty line in between). Just thought of this while responding to another comment.
damnnnnnn. SUblime is an underdog. I had been using sublime for a while, and i had no idea you do so much in it.
This is one of the best intros to an instructional video I've ever seen! I know exactly what I'm getting into and I'm super engaged just by you asking me for my time!
Just wanted to share this
I just bought sublime text after refusing to for a year (I own a company so I do have to buy a license) and I am glad I made the jump I can't really explain it but it just works better than any other editor I have tried. it's not even about the speed or looks, it just works in a more fluent manner.
It’s 2 years, but I wish you the best with your company
Damn, I instantly love sublime. Fast, clean, leight-weight. No bullshit.
Control+k+1/2/3.. is quite useful for contracting and expanding all the methods in the file/class. For example use control+k+2 to contract all the methods, except where your cursor is and you can expand them back with control+k+1. 3,4 so forth contracts the higher level of {}'s. Useful for easily hiding bigger if/else jungles.
Thankyou for taking the time in making this tutorial and showing us all the tricks Sublime has to offer. Greatly appreciated. Cheers ))
I guess I never used emacs, but when you're impressed with a file tree gui, that is kinda weird to me.
One of the things I look for when considering a new "app" is how to learn the app. I am a visual learner! So, RUclips has become a great source for me. Any suggestions for videos to learn? Order of learning? Writing code is a new adventure for me. Thanks!
Thanks for the video. I just downloaded it and am happy to find this useful 'getting started' video.
Thank you, best intro! Probably going to be my go-to text editor from now on.
Great video. I am in a bootcamp right now that encourages use of Sublime, though I am also going to use Atom, too. Thanks for this. This is great for us newbies. :-)
This was a nice, quick intro!
Do you still use sublime?
Is it still your main editor or what role does it have?
Hi there, i have a problem,. Miss symbole in left of sublime Which group many lines in one only. Flèche/triangle
How can i find it
Thanks a lot for sharing all this! Very well explained.
I needed this. Thanks! 🙂
I keep trying all these other editors, sometimes for weeks at a time and I keep comming back to Sublime. Atom seemed promising until it got slooow with some of my files.
Ughhh I hated atom the first time I loaded it up. my pc did too...whole thing was like a game was running. Bloatware. Reminded me of steam.......millions of tabs and crap to close before u even get to typing. u want something u can just leave on 24/7 and not care about draining ur computers soul.
@@Cerbyo i switched to sublime after using atom for a week. i can't open it along with a browser without making my laptop go brrrrrrr. the package bugged all the time, and no discussion on the their github had a solution to fix em. on occassions when i turned it off it would't go away and ran in the background then had 1GB of RAM for itself.
super helpful!
Normally, I use nano or kwrite because their features don't get in my way. However, if I need features, it's sublime. I don't care for full on IDE's. Also, sometimes the editors I use are immediately upon install even before network access, so that precludes a lot.
This guy is a legend
to replace something in just 1 file ur working on just click the word and alt+f3 will select all instances of it.....or just ctrl+d however many times necessary to select them all.
Made me really anxious for you to see those AWS keys in the open like that. I hope they’re not production ones. Jeepers mate.. :0
Hah, good instincts. I created AWS Keys specifically for this set of videos, and then revoked them before posting.
excellent intro! thanks!
I have nothing against GUI based text editors, but I love using CLI text editors: NeoVim and Emacs. Nothing beats the power, productivity and efficiency of the text editors. Plus high customization, literally you can turn them into IDE. Actually I don't remember the last time I used GUI based text editor or IDE. I don't understand programmers who use Windows. Except those who develop platform specific software and apps. I am talking about C# and Objective-C/Swift.
Thanks for all useful information!
ctrl button doesn't do anything in my sublime text as opposed to the options you showed with it.. might it be something in the settings?
Command is command shift P, thank god finally it took me so long but i finally get it!
Good explanation, it was so helful.. thanks
Great tutorial. Really helpful! Thanks for creating this!
This was awesome! Thanks!
Is there a package which enables "function shrinking" by clicking a symbol beside the function head ?
(like in eclipse, notepad++,....)
Thanks in advance !
I really like this kind of useful videos
Love the trick at 3:25
I've been using Atom for quite a while. It has most of the features you mentioned; probably all of them. It's also free and open source, and development on it is more active these days. Might be worth trying it out.
Ever noticed how much of an input lag atom has compared to other popular editors?
Spice BäMM No, but I'll see if I notice it at some point. What kind of system are you using?
Input lag has been my complaint too, on Linux. I just tried it on a Mac and it seems much better. I'll give it my yearly honest shot over the next few weeks. I really *want* to like atom, but I haven't found it to be a 'good enough' replacement for sublime yet. Input lag, bugs in the 'undo' mechanism, etc. Small things that add up.
I want to like sublime, but, have not found it good enough to replace eclipse.
my friend can you be more specific as to atom ? the complete name is ? and how i download thanks for the info.
not too bad feature-wise :) if you want to go the open-source path "atom-editor" has basically the same features (and markup in the folder tree for source control ) -> nonetheless nice vid :D
IS there anyway to get options into sublimetext? I know jupyter has the option of doing tab in scenarios for example: mylist.'hit tab' and it will give me options like .pop, .append etc.. Is this available on sublime text? cant seem to find it.
Thanks Dave! Have you given VS Code a look yet? I've been using it recently as my main graphical editor on Windows and Linux systems. It's seeing a rapid pace of development, and has great git integration
I've finally downloaded it and am giving it a try over the next few weeks. It looks really nice so far, thanks for the recommendation!
I like changing color scheme the most. my fav is aristocrat :)
Hello Sir, I observed that while in other editor (for example IntelliJ) when ctrl+left click on a function, it goes to that function declaration. Through that way we can easily nevigate through the code. But in Sublime text it doesn't work.
Can you please let me know how we can achieve that?
Thanks for this!
Give atom time and it will decay the competition. "The half-lives of radioactive atoms have no known upper limit, spanning a time range of over 55 orders of magnitude , from nearly instantaneous to far longer than the age of the universe"
Hehe, I really hope so. I can imagine that in a few years, atom will have gotten most of the TextMate/Sublime market share. I'd be a happy man for the rest of my days with just emacs and future-utopia-atom.
i want to become a linux sysadmin but i don't know were to start . I have a computer science degree but i need to brush up on my networking(tcp/udp , ip addresing,cisco stack) and programming skills(python,django). Which books are the best from the humblebook-linux bundle or what other source do you recommend .Also i played around with rpi 0,1,3 running arch and some motors,cameras. A video exlaining different ip adressing situation/examples and how to solve them would be awsome ! :)
Yeah, networking is one of those things I've really neglected. If I cover it, I want to do it right, and networking is a big subject. For the basics, I actually like the Net+ study materials. Getting one of the older editions of the Mike Meyers study guides is enough to cover the skills you need for a junior role. If you've got a spare $100, you can grab the cisco switching and routing cert study guides, but I haven't done that myself so I can't recommend for or against them. RE: Programming skills, I'm doing a Python course right now (basic, intermediate, a bunch of practical projects, and then advanced stuff). If you already have some experience, then the official Python docs are excellent. I recommend just finding a simple project that you want to do, and then just starting to write code.
I'm trying to type out my CSS in Sublime and it was going just peachy until I was trying to code the h2 and it would become highlighted even after I put CSS command palette. Any thoughts??
Great video!
Thanks for the great video! Do you find yourself using vim or Sublime more? Which do you like more? I am a user of both and just curious.
I use sublime for software dev and editing text on my local machine. I use vim for all remote editing (changing config files, experimenting around with live code, etc.). That's a balance that seems to work fairly well for me.
Great minds think alike. I do the exact same thing.
This is before Visual Studio Code, right?
nice , thanks for your tutorial
Thank you!
HI! How do you save an image to the image folder?!
Thank you very much
Best part was the end "And I'm on call and I'm being paged" Don't you hate that?
Part of me likes it. Admittedly, it's a very perverted and sad part of me, but hey whatayagonnado.
thanks pal.
Thank you very much.
Thanks! :)
sublime is obviously powerful, but the documentation stinks. this video was very helpful, thank you!
thank you
nice
Great text-editor. But I don't want to use the Arrow keys. Is it possible to use terminal controls(ctrl, alt + f, a, p, e, n,d) somehow. Or is there an alternative, so I don't have to move my right hand, while typing. I can't possibly understand how you can switch from emacs, if sublime don't has that killer-feature.
It's extremely flexible. Something like this might suit your needs (or could be modified to suit them): makble.com/sublime-keybinding-the-basic-selection-and-cursor-movement
Thanks Dave!
if you have time to reply please read:i get to pages where i can write code in the same window pls help to close the other one it doesen t bother me while writing but visualy it pisses me off
Thanks for the vid.
Where can we see the ansible playlist?
why sublime instead of atom or vscode ? (i know there are a bunch of editors .. still curious)
Best
Ivan
atom je počasen za popizdit, vs-code je počasen + bloated..vim je top,sam komlpiciran,
Subllime ga zmaga;)
I'm 3 minutes in and I have no idea what's going on. I know how to open a folder and open a project, but I don't know why I need a folder or what a project is.
What is the blue theme you are using ?
challenge: vim in 10 minutes
Great idea. Will start thinking about how to structure that now :-D
15:00 - 18:08
Really really good into (y)
Merci merci :)
what is that dark blue color scheme?
Error:Could not find or load main class "class name" help
NICE!
Where should I get that the folder (1.45 minutes), I'm still new
That folder is just an example of a project I have on my machine - basically, the “open folder” feature lets you have multiple files in your workspace at once, which makes it easy to work with real-life (larger) software projects.
How to make script with colors? I have always white.
@tutoriaLinux, i just started teaching myself programming, and i am using sublime text, but some commands don't work right. For example when i write "html" and press tab, it does nothing instead of making a !DOCTYPE, can anyone give me an answer to that, i seem to find it nowhere?!?!
You might need the html boilerplate package. Hit ctrl-shift-p and type 'install package', then search for likely html-boilerplate-related things and hit enter over the one you want to install.
Sublime Text is nice, but compared to Kate (which is almost exactly the same), it uses so much GPU power for just rendering the minimap on the right side of the screen. Kate doesn't have this issue at all, it's much more lightweight in that regard.
The main things it has going for it compared to Kate is the very nice syntax highlighting and the package manager.
Can it work with folders/projects? I've installed it, but have not found that critically important feature.
kate-editor.org/2012/11/02/using-the-projects-plugin-in-kate/
wow ? thank you
How do you make columns ? via CSS display ?
it can't show the page ?
nice!
Is it available in ipad 4
If I have a bachelor's degree in chemistry and I specialize in computational chemistry, is there any chance I can get a job as a junior sysadmin? (I have been using linux for about 3-4 years now and I know a thing or two about networks). My other option if I don't get a job in chemistry is data science, but I find that less exciting.
Yes. Get your Comptia Linux+ cert. That is your entry-level Linux Sys Admin cert. A friend of mine who was a desktop tech in a Windows environment, got this cert and is now an admin for IPSoft in Austin TX with no prior experience as a server admin.
Which font is that?
what os is that?
Can i use python java ruby sql
u forgot alot of them, multitab and stuff woulda been good to go over. plus the others i want but dont know how to dooooooo
Salut. Esti roman?
are you using i3 wm as you Desktop Environment?
Yep!
How to increase your code space in sublime text 3
tnx
Being "emacs-for-all-the-things" my self.
What on Earth has driven you from emacs to sublime?
WHAT IS YOUR FAVORITE EDITOR TODAY? vs code?
I still use mostly Sublime. Occasionally vscode for its excellent HCL support (terraform etc.)
♥️♥️♥️♥️♥️
"...and I switched from using emacs for almost everything..." *clutches at heart* *gasping for air* ...help...help me....heretical speech....words...have...hurt...me........ :D (still an emacs user...) But I need to learn this for a class I'm taking so....here I go....
Seems to be that nothing can replace pen and paper. That is sad.
how to make a website useing Sublime Text
that is so paradoxical using i3 and sublime
Why paradoxical? A great window manager and a great editor go together quite nicely!
why pay for sublime if you have vim and emac for free
Because Sublime has different features, a lower learning curve, and many people find it preferable for common tasks.
Why pay for anything when you have internet
Why not use what you like better if you don't mind paying for it?
Funny thing you say in 15 min but the cideo is 18 min
When I read the title "Basics" I kind of was hoping to find the basics.
What were you expecting to see? Which questions did you have that this video didn't answer? Happy to help or make another video if you've got some things left that you can't figure out. Cheers.
hi
showing lilte but spent times
My sublime text messed "lorem ipsum
Proprietary software? Absolutely barbaric.
and such efficiency ! 58mb of ram compared to atom's 431mb !