Skip to content

Codepolice

  • ⤫

What I Love So Far With Visual Studio

Posted by Judy Alvarez Posted on February 28, 2022March 1, 2022
0

I have used Visual Studio 11 since it was released in beta and I must say I like it. I wanted to write down my favorite features here both to remind myself about them and to maybe give any of you random readers some tips.

HTML Editor / ASP.Net

  • You can now generate a event handler directly from the design source view. Before you had to go to the design view or use the “tab tab” feature in the code view to auto generate an event handler. Now you can do it from the asp server tag itself.
  • Just as you can extract a method via the refactor context menu in the code editor you can now Extract a user control from the HTML view. So if you have a chunk of HTML that you feel would fit better in a user control you can just select it all, right click on it and choose to extract as a user control. VS will then create the new user control, reference it in the document and insert a tag for it. You have to move any code that reference any of the elements that you extracted manually though.
  • If you change a a HTML tag in VS11 it will now also change the closing tag. It’s strange that this hasn’t been there before but I’m glad they finally added it.

CSS Editor

  • I’m a CTRL K+D junkie and use it all the time to format my code. What bugged the hell out of me before was that in a CSS file the editor always scrolled up to the top of the document when i did this. It doesn’t do that anymore. In relation to this VS11 also intend CSS based on class. So .header h1 will get intended below .header.
  • As much as I use the shortcut to format my document i use CTRL K+C  and CTRL K+U to comment and uncomment my code. This did not work in CSS files before but works now.
  • I use border-radius and some other CSS3 features a lot and since some browsers requires vendor specific prefix for these it’s always a mess to have to write -moz-bla-bla and -webkit-bla-bla and so on. If you type border-radius in the Visual Studio 11 editor and then press tab twice it will automatically create these.

Page Inspector

The Page Inspector they added in Visual Studio 11 is just brilliant! It’s like Firebug but instead of seeing your generated HTML when you inspect elements, you see the actual server-side code that generates a specific element on your site. And it also works with CSS! No more hacking in Firebug to make something looks good and then remember what you changed and save it in the actual file and so on. As I said, it’s just brilliant! Right-click on the project and choose “View in Page Inspector” to use it!

Categories: JavascriptTagged: ajax asp net, api asp net, asp .net application development, asp dot net core, asp net basic interview questions, asp net company, asp net core books, asp net core pdf generator, asp net core versions, asp net create pdf, asp net css, asp net developers for hire, asp net ecomerce, asp net hello world, asp net programs, asp net software development, asp net vb, asp net vs asp, datatable in asp net, ecommerce asp net core, how to store value in session in asp net c#, image button in asp net, is asp net dead, listview in asp net, login page code in asp net, microservices in asp net core, multiple file upload in asp net, smart asp net, treeview in asp net, web service asp net

Post navigation

Previous Previous post: Problems with gzip when using IIS 7.5 as an Origin server for a CDN
Next Next post: Get the Dark Theme for the editor but not for the rest of the UI in Visual Studio

Related Posts

  • TypeScript and JavaScript dominate on GitHub in 2025

    #​759 — October 31, 2025 Read on the Web JavaScript Weekly Directives and the Platform Boundary — First there was the “use strict” directive to opt in to strict mode in JavaScript, but now you’ll encounter use client, use server, React’s new use no memo, and more, and they’re not standard JS features at all.

    Posted by Posted on October 31, 2025
    0
  • The reality of porting Deno code to Node

    #​598 — October 28, 2025 Read on the Web Awesome Node: Over 500 Curated Packages, Resources and Links — It’s been more than four years since we linked to Sindre’s handy resource, but it continues to get updates and tweaks (and, if you want, you can contribute a submission too – though the bar is

    Posted by Posted on October 28, 2025
    0
  • Vitest 4.0 and Next.js 16

    #​758 — October 24, 2025 Read on the Web JavaScript Weekly Vitest 4.0 Released: The Vite-Native Testing Framework — The Vite-powered, Jest-compatible testing framework introduces visual regression testing, makes its ‘Browser Mode’ stable (for running tests in a browser directly), adds Playwright Traces support, and more. Still unsure? You can compare it with other test

    Posted by Posted on October 24, 2025
    0
  • Node.js 25.0 arrives

    #​597 — October 21, 2025 Read on the Web Node.js v25.0.0 (Current) Released — The latest cutting edge version of Node has arrived with Web Storage enabled by default, JSON.stringify perf improvements, a new –allow-net option in the permission model, built-in Uint8Array base64/hex conversion, and WebAssembly and JIT optimizations. As shown in the diagram above, this

    Posted by Posted on October 21, 2025
    0
  • A Bun-believable release that isn’t half-baked

    #​757 — October 17, 2025 Read on the Web JavaScript Weekly Bun 1.3: The Full-Stack JavaScript Runtime — Arriving a few hours after last week’s issue (natch!) Bun 1.3 remains the big news of the past week. Bun is a performance and DX-focused JavaScriptCore-powered runtime which, with v1.3, balances being a drop-in Node.js replacement with

    Posted by Posted on October 17, 2025
    0
  • Bringing Python apps into Node

    #​596 — October 14, 2025 Read on the Web 📂 A Modern Guide to Reading and Writing Files in Node — A comprehensive guide to various methods for working with files, from promise-based methods through to working with streams, processing files concurrently, using file handles, and memory-efficient techniques. Luciano Mammino A Way to Integrate Python ASGI with Node.js

    Posted by Posted on October 14, 2025
    0
Judy Alvarez

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Codepolice

  • Github
  • Atlassian
  • Flatlogic
  • Xero
  • Jetbrains
  • Figma
  • TypeScript and JavaScript dominate on GitHub in 2025
  • The reality of porting Deno code to Node
  • Vitest 4.0 and Next.js 16
  • Node.js 25.0 arrives
  • A Bun-believable release that isn’t half-baked
https://flatlogic.com/generator
COPYRIGHT © 2025 - Codepolice