How do you apply style rule in Safari Web Inspector? - safari

Chrome Developer Tools allows you to apply a style rule in the Styles pane. I haven't found a way to do this in Safari (Style Rules pane). Any one know if it is possible?
Also, does Safari have rulers like Chrome does?

Safari 8.0.8 on OS X
Right-click any element and select Inspect Element from the pop-up menu
Ensure Styles and Rules are selected on the right hand side of the inspector
You can then either add individual rules by clicking + New Rule, or simply click and start typing rules where Click to Edit appears (refer to image below)
Enter your new rules and these will be applied to the element being "inspected" in the browser window.
As for a ruler? Well, I haven't found one, but the Inspect button will give you the dimensions of elements when hovered in the browser window.

Open the DevTools-like panel (CMD + OPT + C)
Click on the Elements tab
If it's not open yet, click on "Show the details sidebar" on the right (CMD + OPT + 0)
OR
Right-click element and select "Inspect Element"
If it's not open yet, click on "Show the details sidebar" on the right
(CMD + OPT + 0)

YES this is absolutely possible - and here is how:
Safari 6.x.x
(Safari 6.0.1 Solution Confirmed on Mac OsX)
for the newest version of Safari 6.0+ Apple has taken the luxury of removing those gui elements. the feature is still available however just a little more tucked away. to add your styles in safari 6 you need to follow said steps:
the STEPS:
first choose the {} brackets icon in the right sidebar
From the DOM model in the center white area of the web inspector- Click to select the HTML element you wish to view styles of. ( they will display in the right style sidebar )
On the right style sidebar: double click the closing brace on the existing style for the selector you wish to edit.
OR
Double click the open area beneath the "Style Attribute" drop down in that same sidebar to add your own styles to that particular element
Safari 5.x.x and previous (5.x.x Confirmed Win 7 & Mac OS X)
assuming you have enabled the inspector in the settings advanced menu you can begin right clicking and inspecting elements...
from that point select an element in the DOM on the left from the html markup. now on the right sidebar make sure the "Style" menu is expanded.
once here you have two options:
there should be a blank "element.style" selector available for every DOM element you can select from the left. these are intended for your customization. you can double click here to be given the option to add styles to that selector.
you can also click on the gear at the top right corner of the styles menu in that right side bar and choose the last option "New Style Rule" this will allow you to define your own selector independent of the DOM element you have chosen on the left
you can find the full apple documentation here

Related

Keyboard shortcut to navigate between IntelliJ views

In IntelliJ, there are some underlined numbers on the side menus :
1: Project
7: Structure
Like below :
So there is probably a keyboard shortcut which allows to navigate from one view to another by just entering the view number.
I tried the different digits with Ctrl, Ctrl+Shift, Ctrl+Alt etc but could not find the right shortcut.
How can I easily navigate between those views?
The shortcut is Alt + [number]
ps. There's a plugin force-shortcuts if you wanna replace your mouse click actions with shortcuts (https://github.com/treytrahin/force-shortcuts-intellij-plugin). It's super annoying but you learn really fast. And by the way here are such plugins to most editors and IDEs.
ALT+F1 opens a window where you can choose one of the views by pressing the corresponding number.
Info: It actually opens the selected file in the selected view - which is not that bad maybe - but not 100% what you want?
Also there are cool things like pressing C to open a file chosen in Project Explorer directly in Explorer for example.

Add right click menu item inside gutter of vscode

How to add right click menu inside the editor's gutter of vscode.
I want to have a provision to show/hide line numbers option on the right click inside the editor's gutter.
I am not sure about the extension point for this.
Unfortunately, this is not possible, yet.
I have filled an issue, "OnClick event on Gutter #5455" sometime ago, but it is still open, and no Milestone defined.

How to reopen project viewer in IntelliJ IDEA

I can't figure out how to re-open the tab on the left (solution viewer) in IntelliSense Idea.
Anyone know ?
In the left bottom corner you will find a small icon. You can either move your mouse over it and select Project or click on this icon to toggle the visibility of all tabs (which you can click on to open the corresponding view).
You can also use the shortcut Alt + 1 to toggle the Project View.

WebStorm: Hide html selector toolbar

In WebStorm I want to hide the toolbar that appears on html files at the top. It shows the html selectors and ids drill down. I've circled it in the below picture...
Go to File -> Settings or press Ctr+Alt+S on windows. Then go to Editor-> General -> Appearance.
Then on the right side of the panel uncheck "Show HTML breadcrumbs(...)" line. Then restart the IDE to take effect.

How do you change the folder and menu font-size in Sublime Text 3?

I'm not talking about the font-size of the editor window, simply the font-size of the text in the main menu bar and the folder/file navigation side panel.
I've googled all over and read through all the docs I could find to no avail. Thanks in advance!
How do I do this in Windows 7?
Sidebar and tab font are modifiable:
Sublime Text 2 how to change the font size of the file sidebar?
The package is now located at /opt/sublime_text/Packages/Theme - Default.sublime-package (for Linux installation).
Extract Default.sublime-theme to ~/.config/sublime-text-3/Packages/User and modify the content.
(This step can be simplified using the PackageResourceViewer package.)
Menu font doesn't seem to be modifiable.
As far as changing the font size in the main menu bar, this can be done through the Windows Control Panel, but any changes will be universal - they'll apply to all applications.
Finding the options to change the menu font and size is kind of complicated, but here's how I do it: Open the Control Panel and select Personalization, then down at the bottom click on Window Color. In the next window that opens, click on Advanced Appearance Settings... to open the Window Color and Appearance window. Click on the menu item Normal and select your preferred font and size, then click Apply to check it out. Hit OK when you're done, save your theme if you want, and you're all set.