I use Sublime Text 2 and want a Ruler to be shown in every file with specific line-height. But I have to show it manually in every file.
Go to Sublime Text > Preferences > Settings - User
Add a "rulers" setting with the lines you want for the ruler:
// Adds a single vertical ruler at column 80
"rulers": [80],
If you want multiple rulers, separate the values with a comma:
// Adds two vertical rulers: one at column 80 and one at column 120
"rulers": [80, 120],
Rulers not showing? Rulers are only shown when using a monospace font, which is the default font for Sublime Text. Ensure you are using a monospace font if the settings above don't work for you.
Edit the "rulers" value in the default settings to contain the column number you want the ruler to be displayed on, and it will persist.
Never edit Settings - Default; edit Settings - User instead. If you upgrade your SublimeText version you will lose all of your settings because Settings - Default will be overwritten.
In the Packages folders the 'User/' folder will be ignored between upgrades of SublimeText, the settings here will be persistent.
To enable the persistent rulers in any document, add the settings in Defaults - User:
{
"rulers": [75, 80, 85]
}
This example will display 3 rulers, at 75, 80 and 85 chars length.
As others have stated before me, select Preferences -> Settings-User and change
"rulers": [],
to
"rulers": [80],
in order to display one ruler at column 80.
Now for the rub, it seems that one must use a monospaced font in order to display rulers so you'll also need to change
"font_face": "",
to
"font_face": "Monospace",
or any other monospaced font.
Thinking about it, this makes sense. If different characters have different widths, then the ruler could potentially not be a single line, but a bunch of annoying line segments. I noticed this while using the default font and my column numbers were not the same for the same vertical position. At the same time, my fancy ruler was specified but not displayed. Changing the font to Monospace solved both problems.
While the answer by Ross Allen is great, it isn't the most convenient if you find yourself wanting to toggle the rulers on and off or change the width at various points while using Sublime.
Luckily, someone made a Package that allows you to do this.
https://packagecontrol.io/packages/QuickRulers
The package works in both Sublime Text 2 and 3.
Install Instructions:
Install PackageControl
Open PackageControll (e.g. via ⌘ + SHIFT + P)
Type "Install" and select "Package Control: Install Package"
Type "QuickRulers" and hit Enter to install the QuickRulers package.
You can access the command (quick_rulers) through several different means, but by default it is loaded in Omnisearch via "QuickRulers: Open Panel". (i.e., Hit ⌘ + SHIFT + P and type "QuickRulers: Open Panel")
If you change font, ruler will not be displayed. E.g. I set "font_face": "Lucida Grande", and ruler disappeared.
I just had this problem and noticed that the my ruler was only showing up when I was slightly scrolled to the right horizontally. Turns out the reason it was disappearing was because I was slightly zoomed in. Press Cmd+0 to make sure you are zoomed to the default 100% size before trying other things in case this is also your issue.
(I am using Sublime Text 3)
"editor.rulers" worked for me:
{
"editor.rulers": [72, 80]
}
instead of
{
"rulers": [72, 80]
}
Posting here so that it may help for some peoples.
P.S. I am using vscode on Macbook.
Related
I'm trying to to change the size of my sidebar in sublime text 3, version for Ubuntu, but i just can't get it working, i read lots of posts about it, they said that i should have something like this:
{
"class": "sidebar_label",
"color": [0, 0, 0],
"font.bold": false,
"font.size": 14
},
on my settings - default, but nothing like it in there, for example i find there
"bold_folder_labels": true and works like a charm in my settings - user, but i try to put here the "class": "sidebar_label" with "font.size" and not results at all, maybe I'm just doing it wrong, please a little help, the text is so small that i can hardly read it.
Another thing i observed:
Changing theme doesn't affects the sidebar
I don't remember if this is always true, but i think on my older laptop changing that change the colors of the sidebar and fonts, i remember use it before soda theme for getting smaller fonts on a low resolution laptop.
Thanks in advance, regards
You will need to edit the Default.sublime-theme file to do this, not your preferences. Unfortunately, in Sublime Text 3 this file is contained in a zipped .sublime-package file, so you'll need to extract that first. Install the PackageResourceViewer plugin via Package Control, then hit CtrlShiftP (⌘ShiftP on OS X) and type prv to bring up the PackageResourceViewer options. Select Open Resource, scroll down to Theme - Default, hit Enter, scroll down to Default.sublime-theme, and hit Enter again to open it.
Next, search for sidebar_label and modify the first one (on line 362) to look like this (it needs to be valid JSON):
{
"class": "sidebar_label",
"color": [0, 0, 0],
"font.bold": false,
"font.italic": false, // <-- add comma
"font.size": 14 // <-- new line
// , "shadow_color": [250, 250, 250], "shadow_offset": [0, 0]
},
Save the file, and you should see the sidebar font size change. You can change 14 to whatever size you want, depending on your personal preferences.
If you want to do this in Sublime Text 2, it's a bit easier, as nothing is zipped up. Select Preferences -> Browse Packages... to open up your Packages folder in your operating system's file navigator. Enter the Theme - Default subdirectory and open Default.sublime-theme as a JSON file, then edit it as above.
Good luck!
Go to Preferences > Setting
In the right side pane, add this
"font_face": "Courier New",
"font_size": 10
Put the necessary commas(,) where needed. And it will change the font size.
Thank you.
Like this, how do I set up?
ps: my sublime text is version 2
This is a one sneaky setting I wasted time to find out how to turn off:
// Allows tabs to scroll left and right, instead of simply shrinking
"enable_tab_scrolling": true,
See if it's available in ST2. Interesting part is that it's disabled on OS X by default, but enabled on Linux and Windows.
Is it possible to define a shortcut to increase/decrease size of code in PhpStorm, like what you can do in Notepad++ with CTRL+Mouse Wheel?
Enable CTRL+Mouse Wheel: Settings -> Editor -> Change font size (Zoom) with Ctrl+Mouse Wheel (check).
Specify exact font size: Settings -> Editor -> Colors & Fonts -> Font.
I am able to change my PHP Storm (version 8.0.3 or later) Fonts by
Go to File and then click Settings.
Form Left Side Menu, Select Editor --> General Tab
Check this box under Mouse section Change font size (zoom) with Ctrl_Mouse Wheel (see below pic).
30 Second Demo Here
in new version in this address
file > setting > Editor > general
check this item
Change font size (Zoom) with Ctrl+Mouse Wheel
Also you can use View → Enter Presentation Mode.
Default font size for this mode is 24.
You can change it here: Settings → Appearance → Presentation Mode → Font size
The pre-defined schemes are not editable. To change colors and fonts settings in such a scheme, create its copy.
So to change font size select any scheme of your choice. Save the "scheme" as a copy with a name like "scheme 2".
Now the default font size will be editable.
In MacOS, you should navigate to the PhpStorm -> Preferences -> Editor -> General screen and check/uncheck the "Change font size (Zoom) with Command + Mouse Wheel" checkbox. I unchecked because I don't like it but maybe you do.
Moreover, you can use the finder field in the top left corner of the same PhpStorm -> Preferences dialog. Type the word "size" in this field and you will see a couple of items on the right hand side of the dialog. There are the Editor Actions -> Decrease Font Size and Editor Actions -> Increase Font Size options.
Right click each of them and choose "Add Keyboard Shortcut". Finally, press the Ctrl and numerical plus in case of Increase and Ctrl and numerical minus in case of Decrease and press OK (if you have numerical part of your keyboard).
In PhpStorm 2020.2.1 go to :
Settings -> Editor-> Font
That's it
Switching beetween Editors and zooming text during presentations or so could be complicated.
If you used to do it like in notepad++ than maybe this helps if you use win:
^NumpadAdd::
send,^{WheelUp}
return
the complete script you could find here: https://gist.github.com/sl5net/7170280#file-gistfile1-txt
Is it possible to increase the font size on the Sublime Text status bar? I did some searching and didn't find much at all on the subject. I sometimes miss important information displayed in the status bar simply because its so small I don't notice it.
As far as I know you should modify theme settings for that. Please take a look at this answer (at the bottom of the page) Customize interface fonts
Try this it will work for sure in Sublime Text 3 .
navigate to Preferences -> Default File Preferences .
Its will open the file in Sublime text itself
look for "font Courier New 10"(for me Line no: 14)
just change the 10 to X size.
I am using MySQL Workbench 5.2, the newest version as far as I know, but I simply cannot change the font. It is very inconvenient, because the default font is very small and harsh on the eyes. The appearance tab has options for changing the font, but no change can actually be made there, as the field cannot actually be edited.
Does anyone know of a way around this? It seems to be a common bug, but I can't find a fix anywhere.
In the
Edit > Preferences... > Appearance > Fonts section
of the mentioned version, you can edit the font but you have to slowly double click, as its very wonky (or press enter) and then you manually have to type in the font name followed by a space and font size for example mine states:
Source Sans Pro 10
Also it requires a program restart.
On Mac, on the top left corner,
MYSQLWorkbench -> Preferences -> Fonts
Increase the numbers here
NOTE : Make sure to close the instance and reopen it for these changes to apply.
Only thing you need to do is increase zoom:
(MySQL: 8.0.12)On a mac computer.
picture of mysql and an arrow pointing to the zoom tool
IF YOU ARE ON LINUX (DEBIAN and many others)
Hold ctrl and scroll up (mouse scroll)
Similarly for Mac OS X using the hidden path below (ref: this link):
"You can edit the preferences directly in their XML files. Shut down MWB. Then edit the file ~/Library/Application Support/MySQL/Workbench/wb_options.xml. Look for the key workbench.general.Editor:Font, and change the font there. Now restart MWB to see your change."
Edit -> Preferences... -> Appearance -> Fonts section
Highlight a row, click ENTER, you can then edit the font and size.
Restart the app after.
Well, I just wanted to increase the size of font only because it was too small in my WB 6.1.
Close WB
Go to:
C:\Users\<User>\AppData\Roaming\MySQL\Workbench\wb_options.xml,
where <User> is your Windows user login name.
Locate "workbench.general.Editor:Font".
I had Consolas 10 there, and changed it to Consolas 13.
That increased font to a comfortable size.
After clean installing MySQL Workbench (WB) 5.2.47 (Windows 7) on a new machine, I wanted the Lucida Console font as I am used to, but for some reason WB chooses a different font for reserved keywords, making the code unreadable. There is no setting for reserved keywords. So I could not easily change this by editing the wp_options.xml file. The only font setting which was acceptable was Courier New.
Then I went to another machine, and copied wp_options.xml from a WB 5.2.47 which had a history of WB upgrades. That did the trick, it worked fine on the newly installed WB.
Looking at the both wp_options.xml files in a text diff tool, I noted many differences, but not any that could explain the difference. My conclusion is that Oracle needs to work with UI configuration, as it is not OK that subtle, obscure edits in the wp_options.xml file is what is required to make the WB UI acceptable.
You can also do ctrl + mouse scroll to control size of font just like we do in VS code