How to make sublime text editor highlight left bar area on active code block - ide

Sometimes I feal lost while coding on sublime text editor as it doesn't highlight the left bar as others ides/text editors do
what I am talking about is the light violet color on line numbers as in eclipse.
But in Sublime text Editor its simply an small dash beneath curly braces.
Is there any way I can get this in sublime text editor ?

Add this to your user, preferences file:
"highlight_line": true
You can find a great many helpful visual aids by looking in the default preferences file and the copying any over to your user file. Don't change settings in the default file though. Always add them to the user file.

Related

intellij idea selecting color for ui

I am using Dracula theme on my IntelliJ idea and I see the dark font on the Find in Path, Tex to find box and search results text which is really difficult to read.
How can I customize these colors
You can update the colors in the Editor Settings. Go to Preferences -> Editor -> Color Scheme -> General.
On the right pane select Text -> Default Text from the list of expandable options. Update the properties as required.

How to modify the font of PhpStorm findbox

How to modify the font of PhpStorm findbox (find text field)? Fonts are windows default simsun! No change options in settings.
Update: this feature is available starting from IntelliJ IDEA 2018.3.1. To make the search/replace fields use the editor font you can add -Dide.find.use.editor.font=true in Help | Edit Custom VM Options and restart the IDE.
Original answer:
At the moment the font used in the text field is hardcoded and you can't change it, please vote for this request and follow it for updates:
IDEA-106651 Editor Search/Replace: use editor font for text input fields
Other related requests:
IDEA-68258 Font in Find/Replace dialog and Find panel same as in editor
IDEA-125920 Make the editor text search bar text-size & font an option.

How to get HTML-formatted code from clipboard? [duplicate]

Is there a simple way to copy syntax-coloured code block as rtf in intellij IDEA?
UPDATE: there is now a new plug-in for this: 'Copy' on steroids that is maintained by JetBrains.
There is no way to copy colored code block from IDEA directly.
A workaround is to use File | Export to HTML, then open HTML in a browser, then copy from the browser window and paste into Wordpad or MS Word.
Another and more faster way is to install the Copy as HTML plug-in in Settings | Plugins:
Copies a snippet of code as html
Adds menu items "Copy as HTML" to main menu and editor popup. Will copy the current selection or the complete editor buffer. Currently only works if focus is in editor (for example won't work in project tree).
Preserves more formatting than the built-in HTML export.
HTML is only a snippet (without html and body tags) meant to be inserted into a complete HTML document.
Currently HTML format is fixed and uses CSS a lot.
Options: unindent, add border, padding, line numbers, tabs to spaces conversion, include editor's warning and error highlighting (see IDE Settings -> Copy as HTML).
Reuses the editor "Show Line Numbers" setting (see Idea's "View" menu).
IntelliJ IDEA 15
By default, you can copy rich text from IntelliJ to Microsoft Word (for example).
This feature can be found in File > Settings... > Editor > General > Rich-text copy > Copy as rich text by default
You can also change the color scheme only for the copy-paste operation (your current scheme won't be affected).
Go to https://gist.github.com/
Copy code from IntelliJ to the new private gist;
Save it, copy colorful code from the browser to wherever you want;
Delete the gist.
Use external tool notepad++
1) copy code snippet to notepad++
2) apply syntax highlighting
3) copy with nppexport plugin to clipboard as rtf
If you're on a mac and like TextMate, here's a great way to copy styled code from TextMate: https://github.com/bblimke/copy-with-style-tmbundle
It's not as convenient as doing it directly from IntelliJ, but it's a bit more convenient than using gist or pastebin. Also, unlike the Copy as HTML Plugin for IntelliJ, this solution actually works at the time of this writing.

How to disable auto changing tabs to spaces in the code in Intellij Idea?

How to disable auto changing tabs to spaces and removing empty lines, whitespaces in the sourcefiles after it opened?
In other words if the line contains tabs and spaces in one line Idea shouldn't change them. For example if file contains "-->-->....-->public void setAttribute();" Idea shouldn't change tabs to spaces or spaces to tabs. I can disable all autoformattig.
To restate the problem, you want the editor to not affect the whitespace indentations. Spaces should remain spaces and tabs should remain tabs.
I'm having a similar problem. It looks like IntelliJ has this feature:
Settings > Editor > Code Style,
Indents Detection section,
Detect and use existing file indents for editing option
Unfortunately, I don't think I can get it to work as expected for myself (version 2016.3.6), but it seems to be working for others.
Here's the original jetbrains blog post about it.
There is an option 'keep indents on empty line'
Assuming Java: Settings > Code Style > Java > Tabs and Indents > Use tab character. You can do the same for other languages too.
Besides noted IDE settings, please check if .editorconfig file exists in your project. The file may silently override IDE settings.
In Editor - Code Style - Java/JSON/etc - Tabs and Indents are two checkboxes:
Use tab character - when not checked, Idea replaces tabs by spaces while typing
Keep indents on empty line - when not checked, Idea removes tabs and spaces from lines where is no other content

IntelliJ idea - any way to change visual line wrapping icon?

I really like Intellij's line wrapping feature with icons marking line wraps. Hovewer the default wrapping icon's readability is far from ideal.. is there any way I could fix this little problem?
Current solution is to use standard unicode symbols from supplementary arrows set: 2925 and 2926.
You can modify that by specifying other unicode (hex) codes via idea.editor.wrap.soft.before.code and idea.editor.wrap.soft.after.code properties in idea.properties file. Note that it's necessary to define both symbols, e.g. add to the idea.properties something like below:
idea.editor.wrap.soft.before.code=2906
idea.editor.wrap.soft.after.code=2907
Note that not all the fonts contain all the Unicode characters, so you have to choose the proper font in Settings | Editor | Colors & Fonts and specify the symbol code that exists in the font that you are using.
To clarify what CrazyCoder said:
On a Mac, you'll need to go into finder and "show package contents" on the Intellij IDEA.app, then you can add lines to the idea.properties file in the "bin" folder. Here's the arrow codes I went with:
idea.editor.wrap.soft.before.code=219e
idea.editor.wrap.soft.after.code=21a0
Don't forget, you can also change their color in the program's preferences under "editor > colors and fonts > general > soft wrap sign".