Does any know how to remove the spacing after the line numbers in PhpStorm (v10)
When you have 2 or 3 vertical columns it is just a waste of real estate!
You can disable "gutter icons" in the settings (I'm running PhpStorm 2016.3)
This removes all vertical spacing from the right of the line numbers.
As darkomen said PhpStorm use this space for various functionalities:
For example with the Symfony2 plugin, you have icons to navigate to services classes or Twig templates. You also have a bracket that shows you the "current context" of where your cursor is located.
But indeed, you seem to have more space than my setup, perhaps you should try to change the font used for these columns numbers.
Related
I got some special characters in my codes, take a look at:
a
It's just shown in frontend with normal characters like an "a".
Now the same characters without any normal characters:
Characters starts here
Characters ends here
Ok it looks like this Editor will not save empty
, try it with snippet.
<html><p>
</p></html>
The problem is, in PhpStorm this characters wont be shown, even not with
"settings - Editor - General - Appearance - show whitespaces" or
"settings - Editor - General - Appearance - show method separators"
Only "strg+f, strg+r" will find this characters.
I think this character is an "only-mac-char" :) I'm working with Windows, and I can't test it on mac.
EDIT: Sorry i could identify it as "U+2028 : LINE SEPARATOR"
http://www.babelstone.co.uk/Unicode/whatisit.html
The big problem is that phpStorm didn't show anything in the code. Like there is no character, but moving with the arrow keys notice 2 steps at this position, between 2 tags looks like "><" but it's "> <".
Based on your update it is now clear what character you have in mind:
Sorry I could identify it as "U+2028 : LINE SEPARATOR" http://www.babelstone.co.uk/Unicode/whatisit.html
Install and use Zero Width Characters locator 2 plugin: it can detect quite a few invisible characters (e.g. UTF-8 BOOM sequence, non-breakable space, Unicode line separator (your case) etc).
It is implemented as a separate inspection with highest (Error) severity so will be easy to spot or check the whole folder/project just for these issues.
There is a ticket (Feature Request) to have an option to show invisible characters in the editor.
https://youtrack.jetbrains.com/issue/IDEA-115572 -- watch this ticket (star/vote/comment) to get notified on any progress. implemented in 2020.2 version.
Other related tickets:
https://youtrack.jetbrains.com/issue/IDEA-99899 (your case, as I understand)
https://youtrack.jetbrains.com/issue/IDEA-140567
https://youtrack.jetbrains.com/issue/WEB-13506
UPDATE 2021-11-10:
As of 2020.2 version the IDE can show invisible/special symbols right in the editor.
An example:
What is the equivalent Atom Indent Guides like the one Bracket has showing vertical lines connecting matching beginning/opening and ending/closing brackets or keywords?
Atom supports "Indent Guides" and even names it the same, you can access the configuration by choosing Settings View: Open from the Command Palette
or by pressing Ctrl-, (Control + Comma). Scroll about two-thirds of the way down and there is a checkbox to toggle the Indent Guide on or off:
When enabled they look like this in the editor:
Also found an "improved" package in Atom if Atom's indent-guide isn't cutting it.
https://atom.io/packages/indent-guide-improved
Repo seems to be updated.
UPDATE: show indent guide option is now under Editor tab, in settings.
Screenshot:
Haha. I encountered this issue today too. If I understand your question correctly, you want to know how to enable this feature?
Go to preferences/settings and then scroll down and check 'show indent guide'.
Example
I'm afraid this is highly specific, so please bear with me and read carefully.
The problem:
Open a PDF file, select and copy some text that contains line breaks and paste it into a TinyMCE textarea in the Google Chrome browser. Then delete any line break and insert a space at the same point: the space that is added is non-breaking even though I used a regular "space bar" key stroke in TinyMCE.
How do I know there is a non-breaking space?
You can click the "show invisible characters" button on the first row of my TinyMCE implementation (see link below). Remember that with TinyMCE your must turn that option Off and On again every time you modify the text to see the changes.
The non-breaking spaces will appear in orange, normal spaces appear normally.
What I have found so far:
If I delete the character that comes after the line break and then type that character again, I can insert a normal space. The problem seems to be attached to that character.
If I delete the character occuring before the line break, the problem persists, i.e. when I delete the space and type a new space it is still a non breaking space.
Also when I save the text to the MySQL database, and read it again in TinyMCE, the problem still occurs, which reinforces my impression that the "hidden" character is attached to the letter following the line break (there is no saving on the test page of course).
Replicating it
You could of course try it yourself, but here is my testbed for you: http://www.roseback.com/test/tinymce4.html
I have tested it with many PDF files that we receive from graphic designers, from many products and eras. These PDFs are the files that are used for printing and there is no problem with those files for that use.
I uploaded a sample file here: http://www.roseback.com/test/languedoc.pdf. Test with the first paragraph starting with "Ce film exceptionnel".
However I have also tested random PDF files from the web and replicated the problem every time. So if you try with your own files and can't replicate, that might be interesting.
Environment:
Web page: the page is in HTML5, in UTF-8.
On the original page, the page is served via PHP and the textarea content comes from a MySQL 5.1 DB. The DB connection is set to UTF-8 in PHP, the content of the table and of the text field is in utf8_unicode_ci
On the test page there is no content and no saving, so no DB is involved.
Browser: Chrome. Does not happen in Firefox or Opera (not tested elsewhere)
TinyMCE: version 3 and version 4 (both standard version, not jQuery)
OS: on Windows 7 Pro 64 bit and also on Windows XP Pro 32 bit
I would appreciate any feedback, even simple confirmation / replication of the problem.
Hmm, i think what you observe has something to do with the fact that tinymce inserts non breaking spaces instead of spaces. Tinymce needs to so this in order to avoid that the browser shows more than one space concurrently entered as one single space (this is the default browser behaviour).
You can verify this by inserting more than one space and then have a look at the non-visible characters.
I'm trying to add auto increate indentation feature in a Sublime Text package.
As for TextMate, there's increaseIndentPattern = '\{'; that can make easy indentation.
http://manual.macromates.com/en/appendix#indentation_rules
How can I do that in SUblime Text?
Sublime Text 2 already has easy indentation built in.
Hit Ctrl+] to indent right, and Ctrl+[ to indent back or remove indentation.
Similarly, you can select the text you want to indent, and hit the Tab key. This indents the selected block of text. Shift+Tab will remove indentation of selected text.
If you are working with predefined syntaxes you can define a keybinding for your "ReIndent" command, which will execute Edit>Line>Reindent command on the entire document.
However, if you reeeeally want to get your hands dirty with setting up how the program indents specific language syntaxes, you go to the Preferences Menu and hit Browse Packages.
Look for the language you want to modify indentation rules for, I'll use PHP as an example. There are 2 files that have indentation rules for my copy of PHP right now. Their names are as follows:
Indentation Rules Annex.tmPreferences
Indentation Rules.tmPreferences
There should be another copy of these same filenames with *.cache at the end. Feel free to add .old after .cache and modify the plain *.tmPreferences ones.
I need Chrome to display plain text files with long lines that should not be wrapped. But when Chrome displays a plain text file (text/plain) it wraps the lines around. How can I induce it to exhibit Firefox-like behavior (no wrapping, show scrollbars instead)?
I have tried to wrap the text into a element and it works but takes astonishing amount of time to load, even for relatively short text.
The easier solution for this is to right click and open "View Page Source". In this view the lines are not wrapped by default and "Line Wrap" is an option that can be toggled with a check box at the top of the page.
I've been looking at this too. The closest I've found is to use the command line and launch chrome but forcing to create a custom user style sheet.
Documented here : http://code.google.com/p/chromium/issues/detail?id=2393
You can then edit you local style sheet and update the css for pre tags (which is how chrome renders text/plain by default) to remove the "word-wrap: break-word" so the lines are not broken.
I just loaded Syntaxtic extension and it works perfectly on my Windows 7. It unwraps the lines automatically whenever a text file is loaded!
I hate to suggest an extension for something so simple, but the Syntaxtic! extension supports this.
It's used to add syntax highlighting and line numbers to text files, so it definitely does more than you want it to, but at least it can disable word wrap.
You can handle this on a case-by-case basis with something like Stylus.
I just added a rule for the page I cared about that contained:
pre {
white-space: pre !important;
}