• Home
  • About me

DotNetSwede

A blog about .NET, C#, JavaScript and technology in general.

Month: April 2017

Brace Completion and Auto Indentation in VS

29th April 2017 by Jonathan Lindkvist 1 Comment

When I started coding Node.js in Visual Studio 2015, I noticed that I didn’t get automatic brace completion anymore (e.g. matching of curly braces). When I installed Visual Studio 2017 and started coding JavaScript and TypeScript, I noticed the same thing. When you’re coding C# in Visual Studio, the IDE usually matches braces automatically, and when you press enter it’ll also automatically indent the new line with spaces or tabs, which wasn’t activated either.

Luckily it’s easy to activate these things for JavaScript and/or TypeScript, and while the screenshots below are from Visual Studio 2017, I think it looks pretty much the same in Visual Studio 2015 as well.

Activating automatic brace completion for JavaScript and TypeScript

Automatic brace completion in Visual Studio 2017

Activating automatic indentation on new lines in JavaScript and TypeScript

Smart indentation for e.g. automatic indentation on new line

Posted in: Visual Studio Tagged: Brace Completion, Brace Matching, Indentation, Visual Studio

EmbedIO – A Tiny Embeddable C# Web Server

13th April 2017 by Jonathan Lindkvist Leave a Comment

embedio-logo

EmbedIO is a tiny embeddable C# web server, that I tried out a while back. It was easy to embed it in a Windows Forms application, and I even added a web browser window using CefSharp, which I then used to display the HTML, JavaScript and CSS content that was served from EmbedIO. If you need a tiny web server or REST API, that can be embedded in a Windows Forms, or WPF application, then EmbedIO might be worth a try.

They list some potential use cases on their GitHub page:

  • Write a cross-platform GUI entirely in CSS/HTML/JS
  • Write a game using Babylon.js and make EmbedIO your serve your code and assets
  • Create GUIs for Windows services or Linux daemons
  • Works well with LiteLib – add SQLite support in minutes!
  • Write client applications with real-time communication between them

If you’re interested, then take a look at their web page for more information.

Posted in: .NET Tagged: CefSharp, Embedded Web Server, EmbedIO, Web Server, Windows Forms Web Server

Recent Posts

  • Modular Monoliths
  • Clean Architecture
  • AngularJS to Angular Upgrade Paths
  • Web Scraping with C#
  • ASP.NET Core MVC Anatomy

Recent Comments

  • Dany Wehbe on Web Scraping with C#
  • rainadawan on Web Scraping with C#
  • Clean Architecture - How to Code .NET on Clean Architecture
  • Samuel Dass on Error Logging, Profiling and Analytics Tools for .NET Applications
  • Mokhtar Ebrahim on Web Scraping with C#

Archives

  • November 2018
  • January 2018
  • August 2017
  • July 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016

Categories

  • .NET
  • .NET News
  • Architecture
  • ASP.NET
  • Content Management Systems (CMS)
  • Fun
  • JavaScript
  • jQuery
  • Learning
  • Tools
  • Visual Studio
  • Webdesign

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2019 DotNetSwede.

Omega WordPress Theme by ThemeHall.