<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Altay Karakuş</title>
    <description>The latest articles on DEV Community by Altay Karakuş (@altay).</description>
    <link>https://dev.to/altay</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1144283%2F180459b4-931c-4462-9844-ab76da4871aa.jpeg</url>
      <title>DEV Community: Altay Karakuş</title>
      <link>https://dev.to/altay</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/altay"/>
    <language>en</language>
    <item>
      <title>Writing multi-line code on Chrome DevTools</title>
      <dc:creator>Altay Karakuş</dc:creator>
      <pubDate>Sat, 30 Mar 2024 06:31:38 +0000</pubDate>
      <link>https://dev.to/altay/writing-multi-line-code-on-chrome-devtools-23kk</link>
      <guid>https://dev.to/altay/writing-multi-line-code-on-chrome-devtools-23kk</guid>
      <description>&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0or6kletsocpfel2bhik.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0or6kletsocpfel2bhik.png" alt="Chrome DevTools Snippets" width="800" height="228"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One of the most frequently used panels of tools like Chrome DevTools is writing and running code through the console. This panel, which we often use to test a piece of code as well as when we debug, does not seem very practical when it comes to writing multi-line codes, even though it allows it. &lt;/p&gt;

&lt;p&gt;To enter multiple lines on the console, simply press shift+enter instead of just enter at the end of the line. You can navigate through your code using the up and down arrow keys. However, sometimes you might lose your progress while navigating this history, especially if you mix up your shortcuts.&lt;/p&gt;

&lt;p&gt;There may also be times when you want to paste a code, make changes to it, and run it numerous times. The console is very accessible for this, but there's another panel in DevTools called 'Snippets' that you might have overlooked. Snippets exist in almost every editor and can also be saved in DevTools. They support every feature related to debugging, making them more ideal for storing lengthy lines of code.&lt;/p&gt;

&lt;p&gt;Moreover, you can find many useful snippets with a bit of research. You can experiment with these snippets and save the ones you like in DevTools.&lt;/p&gt;

&lt;p&gt;To write multi-line code here are the steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open Chrome DevTools (right-click anywhere on a webpage and select 'Inspect' or use the shortcut &lt;code&gt;Ctrl+Shift+J&lt;/code&gt; for Windows/Linux or &lt;code&gt;Cmd+Option+J&lt;/code&gt; for Mac).&lt;/li&gt;
&lt;li&gt;Go to the 'Sources' tab.&lt;/li&gt;
&lt;li&gt;On the left pane, click on the '&amp;gt;&amp;gt;' button and select 'Snippets'.&lt;/li&gt;
&lt;li&gt;Click on 'New snippet'.&lt;/li&gt;
&lt;li&gt;Give it a name and start writing your code in the editor.&lt;/li&gt;
&lt;li&gt;Once you're done writing your code, you can run it by clicking the 'Run' button or using the shortcut &lt;code&gt;Ctrl+Enter&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This way, you can write and run multi-line codes easily in the Chrome DevTools console.&lt;/p&gt;

</description>
      <category>chrome</category>
      <category>devtools</category>
      <category>frontend</category>
      <category>snippets</category>
    </item>
    <item>
      <title>Chrome DevTools: CSS Overview Panel</title>
      <dc:creator>Altay Karakuş</dc:creator>
      <pubDate>Sat, 30 Mar 2024 05:59:28 +0000</pubDate>
      <link>https://dev.to/altay/chrome-devtools-css-overview-panel-2ofo</link>
      <guid>https://dev.to/altay/chrome-devtools-css-overview-panel-2ofo</guid>
      <description>&lt;p&gt;For web developers, crafting beautiful and functional user interfaces goes hand-in-hand with meticulous CSS management. But with ever-growing stylesheets, keeping track of every property and selector can become a daunting task. This is where Chrome DevTools' &lt;strong&gt;CSS Overview Panel&lt;/strong&gt; emerges.&lt;/p&gt;

&lt;p&gt;To open the CSS Overview Panel in Chrome DevTools, follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open DevTools by right-clicking anywhere on a webpage and selecting "Inspect" or use the shortcut &lt;code&gt;Ctrl + Shift + I&lt;/code&gt; (Windows) or &lt;code&gt;Cmd + Option + I&lt;/code&gt; (Mac).&lt;/li&gt;
&lt;li&gt;In the DevTools window, click on the &lt;code&gt;&amp;gt;&amp;gt;&lt;/code&gt; button to reveal additional panels.&lt;/li&gt;
&lt;li&gt;Select "CSS Overview" from the dropdown list. If you do not see the CSS Overview panel, it might be because your DevTools are not updated to the latest version.&lt;/li&gt;
&lt;li&gt;Click on the "Capture Overview" button in the CSS Overview Panel to analyze the CSS of the current webpage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here I try to list what you can find in the CSS Overview Panel, equipping you with the knowledge to:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Empowering Web Development with CSS Overview&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The CSS Overview Panel acts as a central hub for analyzing and visualizing all the CSS styles applied on a webpage. It provides valuable insights into various aspects of your stylesheets, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Overall Statistics:&lt;/strong&gt; Get a quick snapshot of the number of elements, selectors, and stylesheets used on the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Color Usage:&lt;/strong&gt; Explore the palette of colors employed throughout the webpage, helping you identify potential redundancy or color scheme inconsistencies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Font Families and Sizes:&lt;/strong&gt; Gain a comprehensive view of all font families and their sizes, allowing you to check for consistency and optimize font usage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unused Declarations:&lt;/strong&gt; Pinpoint styles that aren't currently affecting any elements, enabling you to clean up your stylesheets and improve performance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Media Queries:&lt;/strong&gt; View a breakdown of media queries and their breakpoints, aiding in responsive design adjustments.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Let's Take a Spin: Checking Out the CSS Overview Panel Sections&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Quick Summary:&lt;/strong&gt; Here's the 411 on the page's styles:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Total Elements:&lt;/strong&gt; How many HTML elements we got here.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Selectors:&lt;/strong&gt; The count of selectors doing the styling.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stylesheets:&lt;/strong&gt; How many external and inline stylesheets are hanging around.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Colors:&lt;/strong&gt; All the colors of the rainbow are here, sorted by:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hex Codes:&lt;/strong&gt; The six-digit secret code for each color.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RGB Values:&lt;/strong&gt; The red, green, and blue mix for each color.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HSL Values:&lt;/strong&gt; The hue, saturation, and lightness game for each color.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Clicking a color will highlight all the stuff using it on the page. Pretty cool, huh?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Fonts:&lt;/strong&gt; Step into the font zone! This section shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Font Families:&lt;/strong&gt; All the unique font families on the page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Font Sizes:&lt;/strong&gt; How big or small things are looking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Font Weights:&lt;/strong&gt; The different font weights (like normal, bold) in use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Click a font family to see stuff like where it's from and the weights available.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Unused Declarations:&lt;/strong&gt; The unsung hero of code cleanup, this section finds styles that aren't being used. You can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Check Out Unused Styles:&lt;/strong&gt; See a list of all the unused stuff with details like selector and property.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Filter by Stylesheet:&lt;/strong&gt; Find unused styles for a tidy cleanup in specific stylesheets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Delete Unused Styles:&lt;/strong&gt; Get rid of styles you don't need with a click (be careful!).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This section helps you clean up your stylesheets, making them smaller and maybe making your page load faster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Media Queries:&lt;/strong&gt; Learn all about the media queries used for responsive design:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Media Query Rules:&lt;/strong&gt; All the media queries in the stylesheets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Breakpoints:&lt;/strong&gt; The screen sizes each media query is aiming for.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Click a media query rule to see the styles applied at that breakpoint on the page. It's a great way to understand your responsive design.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Making Your Life Easier with the CSS Overview Panel&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The CSS Overview Panel is here to help you work smarter, not harder:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fast Style Check:&lt;/strong&gt; See how complex your stylesheets are and find places to improve.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Color Matching:&lt;/strong&gt; Make sure your color scheme is consistent by seeing all the colors used.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Font Control:&lt;/strong&gt; Keep track of your font families, sizes, and weights for a better user experience.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cleaning Up Unused Styles:&lt;/strong&gt; Get rid of styles you don't need to make your stylesheet smaller and maybe speed up page loads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Checking Your Responsive Design:&lt;/strong&gt; Make sure your media queries and breakpoints work for a smooth responsive experience.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Capture Overview:&lt;/strong&gt; The panel lets you rerun an analysis by capturing a new overview. Handy for tracking style changes after edits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In conclusion, Chrome DevTools' CSS Overview Panel is an indispensable tool for web developers. It streamlines your workflow, boosts productivity, and ensures you maintain high-quality, optimized stylesheets. From offering a bird's eye view of your CSS landscape to uncovering hidden inefficiencies, it's a powerful ally in your quest for web development mastery. So why wait? Start harnessing its potential today!&lt;/p&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>chrome</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
