Tried to switch from Sublime to Atom like two years ago, but after days of searching couldn't find a reasonable way to make the text fold like in Sublime text (showing the closing tag as well).
Two years later, today, I really want to give it one more try and I still can't find a way to make the folding work with atom settings or any plugins.
If there is a way to give Atom the folding properties of Sublime Text, can anyone give a me link or instruction or whatever how do make it happen ?
P.s: Is it really impossible to do or I just plainly suck at searching online?
https://flight-manual.atom.io/using-atom/sections/folding/
Alt+Cmd+[ and Alt+Cmd+] folds the code. Alternately you can toggle the arrow button just like you can in Sublime.
Replace Cmd with Ctrl if you are on Windows or Linux.
Related
I'm aware of the different abilities to highlight based on filetype, but what I'm looking for is something similar to how in a typical text editor you can highlight a line (not just change the color text).
Is this possible to do in the Atom editor? If so, how do you do it? Is there a plugin for this?
The reason I want to do this is for organizational purposes, and sometimes the files I am working in our custom files that are not necessarily code but documentation (usually both are together in the same file), and the documentation part is where I want to add these highlights.
The only Atom package I know of that has a somewhat similar functionality is the bookmarks package.
It is an Atom core package, so you most likely have it installed already.
It might not be exactly what you were looking for, since it only allows setting bookmarks on lines of your open files.
As soon as you close a file, the bookmarks are lost.
But while working on several opened files, it can be very useful to quickly navigate through these bookmarks.
The reason why no package like you asked for exists, probably is that it would be really hard or at least impractical to implement.
Imagine you set dozends of highlights on a file which is under version control (git, svn, etc.) and then pull in a newer version of this file where several lines were added, removed, changed, shifted ...
To still be able to show the highlights on the correct lines, the information of such highlights would need to be under the same version control. Essentially you would need to store this highlight on the line itself, which would mean everybody had the same highlights, which is probably not what you want. Because if you wanted that, you could just format your documentation with markdown or similar in the first place ;)
First off, I don't know what this is called. So I am going to explain it.
While using Sublime Text Editor and editing HTML it would autocomplete certain parts of the text. Stuff it knew without a doubt that I would be typing.
For example:
<div> </
By the time I've typed that, it would auto-complete to
<div> </div>
Now, I'm wondering what this is called and how I can enable this when using Atom.
I know this is probably a silly question, but I have looked through the answers myself and I just don't know what this is called in actuality, so I can't seem to find anything related to it and it would probably be faster to get a quick answer here.
Thank you.
U can type the command without braces it will automatically complete the tags... I tried it and works well...
ex: write p instead of
Hope you understand.....
cheers :)
Try this from inside the Atom Editor. See my Atom Cheatsheet at https://github.com/pd-gmit/atom-cheatsheet/blob/master/atom_cheatsheet.md for more tips.
Ctrl Space L
Does anyone know of a way to prevent Sublime Text 3 converting sass variables on pressing tab?
For example, I might type $variable-name and then press tab, intending to insert the : and space, which would be the normal CSS behaviour. Within doc type sass, I get 1variable-name:; instead.
It's rather annoying to have to correct every time, and I'm sure others get irritated with the same. I have the Sass and Emmet packages installed.
Many thanks. Your help is much appreciated.
Too long for a comment...
So I did a little digging last night, and from what I can tell this behavior is hard-coded into Sublime. The command that's executed when Tab is pressed right after a variable is expand_abbreviation_by_tab. Many times, Sublime commands are implemented in .py files, and can so be edited to suit your needs. Unfortunately, I was unable to find any mention of this command anywhere, leading me to believe that it's hard-coded. I suppose a workaround would be to enter a space before hitting Tab, if your end goal is to have the colons : aligned with each other. Another option would be to use the Alignment plugin, available through Package Control. It's very configurable, and I highly recommend it.
I use Visual Studio as my development environment, and tab indentation is 4, but after I commit to Google Code, the indentation is 8 in the browser, which makes my code look ugly.
Does anyone know how to reset the tab indentation to 4 when looking at it in web browser?
Apparently this is not supported. This enhancement request was filed nearly 5 years ago, and is still marked as "won't fix":
If you rely on tabs to be some width other than 8 spaces for your code to be
formatted correctly, then other contributors will have trouble reading your code. If
you do prefer hard tabs, it's good practice to use spaces (not tabs) for any
formatting/alignment other than plain indentation: that way, your code will look all
right no matter what the tab width.
I don't see us taking action on this in the foreseeable future: it would be adding
complexity to project administration to enable something that really isn't such a
great idea anyway.
–artdent
So it looks like you are out of luck. I guess that's what you get for using tabs instead of spaces. Tabs require far too much support from the editor, and high quality editors are sadly still not ubiquitous.
It is trivial to configure Visual Studio to use spaces everywhere instead of tabs, including when you press the Tab key:
Tools → Options → Text Editor → <language> → Tabs → Insert Spaces
If you don't want to use spaces everywhere, you could set up your source control system to convert tabs to spaces when you commit code, and convert the spaces back to tabs when you check out. Sounds like a lot of effort just to work around the limitations of one of your tools, but it wouldn't be that hard in practice once you got it set up.
Im running Aptana IDE for developing on a lamp setup. I have looked all over the place in the options to try and find if I can move the text editors file tabs to the side instead of lined up along the top. Any googling I attempt for this just gives me results for changing tab widths and stuff like that, so im having to ask the question here instead.
It doesn't look possible. That would be a limitation of the underlying Eclipse platform on top of which Aptana is built. You could file a feature request here: https://bugs.eclipse.org/bugs/.
This was possible in Aptana 3.4.2. (at least to have them on the bottom) - however I can't find it in 3.6.0. so it looks like it's no longer possible.