How to do Notepad++ like folding in Atom - atom-editor

This is a folding custom area in Notepad++:
In Atom we are supposed to use Ctrl+Alt+F. The issue is that after unfolding it, the arrow disappears requiring us to use Ctrl+Alt+F again.
Is there a way I can use the brackets to achieve the same result in Atom as I did in Notepad++?

Related

Atom IDE - Beautify JSX formatting

I've seen other questions about Atom IDE here so I figured I would ask. If there is a more relevant place to post a question like this let me know and I'll take it down and move it.
I'm using Atom with the package Atom Beautify. I'm creating JSX files and when I run beautify the formatting doesn't follow JSX standards for component props, it makes it really hard to read.
How do I get it to format as displayed below?
Example: Desired setting
<SingleInput
inputType={'text'}
controlFunc={this.handleQualificationNameChange(qualification.uniqueId)}
content={qualification.qualification}
placeholder={'Qualification'}
bsSize={null}
/>
Example: Current setting
<SingleInput inputType={'text'} controlFunc={this.handleQualificationNameChange(qualification.uniqueId)} content={qualification.qualification} placeholder={'Qualification'} bsSize={null}/>

How could I remove text inside quotes in atom editor?

I came from vim. Its biggest win is commands like ci< when <this text is removed if cursor is placed inside angle brackets>
How can I do that in hackable editor for the XXI century?
You can do this using the vim-mode-plus plugin. It natively supports your example, and many other text-object style commands taken straight from Vim, e.g. all of these would work as well:
di<
da<
ca<
And it should work with ', ", (, and other delimiters, just like Vim.
There is a function that comes with the editor named bracket-matcher:select-inside-brackets that highlight everything inside the bracket (but not the bracket itself). You may then press backspace or delete button to remove the content, or any other button to replace the content. For windows, the default key combination is ctrl-alt-m.
If you are not using windows, or you may have accidentally overwritten the settings, you may open Setting > Keybindings and search bracket-matcher:select-inside-brackets. It should tell you what is the correct key combination.

Automatically link filenames with Atom?

I'm interested in switching to the Atom text editor, but one thing that's keeping me with Vim is vim-notes, a plugin that automatically highlights names of your notes and allows you to jump to them by positioning your cursor over them and pressing gf (go to file under cursor). Is there a way to make Atom:
Read all the filenames in my ~/Notes directory
Highlight or underline any text in any .note file that's the name of a file in the ~/Notes directory, even if that note title has spaces.
Allow me to jump to the highlighted note by pressing some kind of key combination while the cursor is over it
I don't think there's a plugin for this, but if it's possible, I might be able to make one.

Atom editor indent size spaces?

I am using OSX El Capitan and Atom 1.2.4. And I also have installed "tabs-to-spaces" package.
I am trying to setup the editor to indent and make the tab be 2 spaces. But I am not able to make this work, here is my setup
Thank you
This is funny. I also like using 2 spaces and was struggling with the described behaviour. When I put the following lines into config:
".python.source":
editor:
tabLength: 2
(Main Menu -> Atom -> Config...)
Atom starts using 2 spaces in my python code. But if try to change settings in language-python package, those lines simply disappear and 4 spaces indentation is back. Thankfully all other settings seem to not reset this, so if you don't mess with language-python settings page, everything should be fine.
I answer my own question because could be useful for someone else.
Atom and the plugin are working, and are indenting 2 spaces.
But as I was writing Python code, the suggestion PEP8 is 4 spaces. Seems Atom is forcing 4 spaces.

Aptana Code Folding?

When i try to use code folding in Aptana it doesn't seem to be working i haven't changed any shortcuts and i can`t get it work the default shortcut is Ctrl+Numpad_Divide any suggestions ?
Ctrl+Shift+Numpad_Divide will work ;)
Did you (accidentaly) disable code folding in Aptana?
Check it in Preferences -> General -> Editors -> Structured Text Editors -> Enable folding.
You should check your key bindings, too:
Preferences -> General -> Keys -> Toggle Folding
Do you have another application interfering with your hotkey configuration? Have you installed new programs recently?
I guess the relevant question back is: what file types are you expecting folding on that you aren't getting it for? And what version of Aptana are we talking about: 2.x or 3.x?
We offer folding on Javascript, CSS, Ruby, PHP, XML, HTML across both versions. It would be helpful to know what file you're dealing with, and what code you expect to be able to be folded that isn't offering you that option.
For me it's html. I once had it running, now it's gone again. Never worked well, though.
I don't have a section "Structured Text Editors" (v3.0.6)
Edit: actually, it's php and I now found it here: Window > Preferences > Aptana Studio > Editors > PHP.
I already had it enabled, and eventually found these little blue icons for folding in odd places. Sometimes they work as expected, sometimes they don't. They're only in the top few lines of my document, then no more (stops at line 86 of 864).
First - as far as I can tell it only works with recent versions of Eclipse - i.e. version 4.4+ (Luna).
Second - it's enabled by default, but can be toggled in the language-specific editor settings. Preferences > Aptana Studio > Editors > [Language: PHP, Ruby, etc.]
Third - if there is a syntax error in the code bracketing - e.g. a missing } or end it often breaks all of the code folding in the whole file. This is pretty annoying because in other errors, code folding is useful for finding such errors.

Resources