My VS Code Setup for Angular, .NET Core and SQL Server — and How It Replaced Visual Studio for Me

Visual Studio is a capable IDE. It’s also a 10 GB install that takes 30 seconds to open a solution. For a full-stack developer working across Angular, .NET Core Web API, and SQL Server, most of that weight goes unused. I moved my workflow entirely to VS Code and haven’t opened Visual Studio since. Here’s the exact setup.

Why VS Code?

The honest answer: startup time and resource use. Visual Studio is optimised for enterprise C++ and Windows Forms workflows from a decade ago. For what I actually do — editing C# controllers, building Angular components, writing SQL queries, testing API endpoints — VS Code with the right extensions is faster, lighter, and less in the way.

The non-negotiable trade-off: you lose the full Visual Studio designer and some advanced refactoring tools. If you need those, stay with Visual Studio. For a REST API + Angular frontend + SQL Server stack, you don’t.

Editor Settings

These are my global user settings in settings.json:

{
"editor.fontSize": 15,
"editor.fontFamily": "Consolas, 'Courier New', monospace",
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"workbench.colorTheme": "Visual Studio Dark"
}

Consolas is the right choice here — it’s designed for code, ships with Windows, and the letterforms for 0, O, l, and 1 are unambiguous. Dark (Visual Studio) theme keeps a familiar feel while running the lighter tool.

Extensions

The Core Stack

C# and C# Dev Kit work together. C# gives you language support; Dev Kit adds a Solution Explorer, test runner, and project management that gets close to what Visual Studio offers. Install both.

Angular Language Service adds IntelliSense, go-to-definition, and diagnostics inside Angular templates — not just TypeScript files. Without it, your .html templates are effectively untyped from the editor’s perspective.

SQL Server (mssql) lets you connect to SQL Server databases, run queries, and browse schemas without leaving VS Code. The IntelliSense-aware query editor alone makes this worth installing.

Formatting and Code Quality

Prettier handles formatting for TypeScript, HTML, JSON, and SCSS. One formatter, consistent output across the whole project.

ESLint handles code quality — unused variables, unreachable code, Angular-specific rules. It works alongside Prettier rather than against it: Prettier owns formatting, ESLint owns correctness. Both run on save.

Productivity

Error Lens puts errors and warnings inline on the same line as the problem. You stop hovering for diagnostics and just see them as you type.

REST Client lets you write .http files and fire HTTP requests directly in VS Code. For testing a .NET Core Web API, this removes the context switch to Postman entirely. A request file sitting next to your controller is also a form of documentation.

GitLens adds inline git blame, rich file history, and comparison views. If you’re already using the built-in Git panel, GitLens extends rather than replaces it.

Azure

Azure Functions and Azure Resources are in the setup for serverless work alongside the Web API. Skip these if you’re not on Azure.

.NET Install Tool manages SDK installations without leaving the editor.

Workspace settings.json

This lives at .vscode/settings.json and is committed with the project so the whole team gets the same behaviour.

{
"[csharp]": {
"editor.defaultFormatter": "ms-dotnettools.csharp",
"editor.tabSize": 4
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.exclude": {
"**/bin": true,
"**/obj": true,
"**/node_modules": true
},
"search.exclude": {
"**/node_modules": true,
"**/bin": true,
"**/obj": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.linkedEditing": true,
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": true,
"mssql.intelliSense.enableIntelliSense": true,
"explorer.fileNesting.enabled": true
}

A few of these settings are less obvious than they look:

files.exclude vs search.exclude — These are two separate settings that do different jobs. search.exclude keeps folders out of search results; files.exclude hides them from the file explorer. Both are set here because a folder that clutters the explorer is just as distracting as one that pollutes search.

editor.linkedEditing — Rename an HTML opening tag and the closing tag updates automatically. No extension required.

bracketPairColorization — Built in since VS Code 1.67. Matching brackets get matching colours. No extension needed; the setting just needs enabling.

ESLint auto-fix on save — source.fixAll.eslint: "explicit" applies ESLint fixes when you save, alongside Prettier’s formatting. Both run; neither overwrites the other’s domain.

explorer.fileNesting.enabled — Groups related files under a parent in the explorer tree. In an Angular project this keeps component.ts, component.html, component.scss, and component.spec.ts under a single collapsible entry. Significantly reduces visual noise in large projects.

What This Replaces

The Visual Studio features I actually used and where VS Code covers them:

Visual Studio FeatureVS Code Equivalent
Solution ExplorerC# Dev Kit solution panel
IntelliSense (C#)C# + C# Dev Kit
Angular project editingAngular Language Service
SQL Server Object Explorermssql extension
API testingREST Client .http files
Git integrationBuilt-in + GitLens
Test runnerC# Dev Kit test explorer

The one thing Visual Studio still does better: complex C# refactoring (extract method, rename across solution with full semantic awareness). For everything else on this stack, VS Code is faster to work in.

Final Thoughts

The setup above handles Angular + .NET Core Web API + SQL Server without the overhead of Visual Studio. The key additions beyond a basic install are ESLint alongside Prettier, Error Lens for immediate feedback, REST Client for in-editor API testing, and a settings.json that cleans up the file explorer and turns on a few built-in features most people never find.

If you’re on the same stack and still using Visual Studio out of habit, this is worth a week’s trial. The startup time alone is enough of a reason to switch.

Bulk Unlocking of Password-Protected PDFs from a Folder

Bulk Unlocking of Password-Protected PDFs from a Folder

Managing multiple password-protected PDFs can be painful, especially if you need to open them frequently or if the passwords are difficult to remember. This guide shows how to automate unlocking PDFs in bulk using PowerShell and qpdf.

Problem

  • Remembering passwords for many PDFs is difficult.
  • Unlocking multiple files one by one is inefficient.
  • A common case is payslips or similar documents shared as locked PDFs.

Approach

  1. Copy all password-protected PDFs into a single folder.
  2. Install qpdf:
    powershell
    winget install qpdf

    Or download the Windows binary ZIP from qpdf’s release page.
  3. Save the PowerShell script below and update paths accordingly.
  4. Enable script execution:
    powershell
    Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
  5. Run the script to attempt unlocking with known passwords.

Solution

PowerShell script to unlock PDFs:

# Set the path to your folder and qpdf executable
$pdfFolderPath = "C:\Path\To\PDFs"
$qpdfExePath = "C:\Path\To\Executable"

# Array of possible passwords to try
$passwords = @("pass1", "pass2", "pass3")

# Verify qpdf exists
if (-not (Test-Path $qpdfExePath)) {
    Write-Host "Error: qpdf.exe not found at '$qpdfExePath'." -ForegroundColor Red
    return
}

# Get all PDF files in folder
$pdfFiles = Get-ChildItem -Path $pdfFolderPath -Filter "*.pdf"

foreach ($file in $pdfFiles) {
    Write-Host "Processing file: $($file.Name)..."
    $passwordFound = $false

    foreach ($password in $passwords) {
        Write-Host "  Trying password: $password"
        $qpdfArgs = @("--decrypt", "--password=$password", "--replace-input", $file.FullName)

        $process = Start-Process -FilePath $qpdfExePath -ArgumentList $qpdfArgs `
            -Wait -NoNewWindow -PassThru -ErrorAction SilentlyContinue

        if ($null -ne $process -and $process.ExitCode -eq 0) {
            Write-Host "  Password removed! File unlocked."
            $passwordFound = $true
            break
        } else {
            Write-Host "  Incorrect password (Exit Code: $($process.ExitCode))"
        }
    }

    if (-not $passwordFound) {
        Write-Host "  Could not unlock $($file.Name)." -ForegroundColor Yellow
    }
    Write-Host "---"
}

Write-Host "Script complete."

When to Use

  • When you need to unlock multiple PDFs at once.
  • When you already know the password(s) or have a shortlist to try.

Caveats

  • You must have the correct password.
  • This cannot bypass encryption if you do not know any valid password.

Tags: powershell, automation, scripting