r/csharp • u/Puzzleheaded_Ant5192 • 21h ago
Solved Debugging on linux
I've got weak laptop that i use from time to time for c# classes. On vs code it says i cannot debug. Is there any way to do so?
r/csharp • u/Puzzleheaded_Ant5192 • 21h ago
I've got weak laptop that i use from time to time for c# classes. On vs code it says i cannot debug. Is there any way to do so?
r/csharp • u/ObviousApricot1272 • 18h ago
Hi there. Im modpack, and I generally lurk this subreddit. Anyway I just had a realization I thought I had. That being is that C# is just java but in the style of C. Now I am fluent in the java language due to working on Minecraft plugins and mods, but I didn't realize how normal to me C# felt until really starting to look into the terms more than face value. I dont typically memorize what they mean im less of a theory girl and more of a in practice type. But honestly I just never realized until 2 minutes ago writing up a game engine for a game jam, anyway see yall later.
r/csharp
•
u/ofcistilloveyou
•
22h ago
I am now writing code again, like I have for the past decade (bar the last ~5 months). Only using AI as an assistant instead of producing 100% of code with it.
My day to day is in Visual Studio (or Codalus when on my home Linux machine) again. I use LLMs to do the boring parts, or as reference when I'm stuck at something. I can also learn much faster using them.
My output is certainly not as much as when we generated 100% of code and just reviewed it, but I still am many times as productive as before LLMs. Yet I enjoy working again, and it's not soulsucking anymore.
I own my code. I navigate in it. I architected it, and thought of the edge cases myself. I solved issues with my brain. Yeah Opus 5.5 could do a haphazard job of it, but after I saw what it slopped out many times, I just don't trust the IPO hype anymore.
I even had to look up syntax today. I was reading C# 15's new features post on my lunch break and was thinking of how I can apply it to the issues I've encountered in codebases.
I feel happy in my job again. I love coding and C# and software development.
r/csharp • u/Keganopizzahere • 12h ago
This was inspired by gta 6, but in my code, every time i exit any vehicle (even if doors arent blocked) my screen flashes, I only need it to flash when you teleport out of the car if doors are blocked. Here is the code written in c# for scripthookv. net latest version:
using System;
using GTA;
namespace VI_Emergency_Exit
{
public class EmergencyExit : Script
{
private bool exitRequested = false;
private GTA.Math.Vector3 playerStartPosition;
public EmergencyExit()
{
Tick += OnTick;
}
private void OnTick(object sender, EventArgs e)
{
var player = Game.Player.Character;
if (player.IsInVehicle())
{
if (Game.IsControlJustPressed(Control.VehicleExit))
{
playerStartPosition = player.Position;
exitRequested = true;
}
}
else if (exitRequested)
{
float distance =
player.Position.DistanceTo(playerStartPosition);
if (distance > 2.5f)
{
GTA.UI.Screen.ShowSubtitle(
"Emergency exit detected!",
3000
);
}
exitRequested = false;
}
}
}
}r/csharp • u/True-Job-4210 • 17h ago
Hi all, Have you guys ever felt lost when reviewing/reading huge code bases? You reach somewhere skimming through code, jumped between files and methods, but it seems nowhere?
You are diving deep into function definitions but lost track where you came from?
Hard to understand the downstream impacts due to a change?
Keeping all this in mind I built Unknot Code, a local-first codebase visualiser. Myself and my colleagues at work have been using it for past 2 month and feels incredible. Current version supports only #csharp projects. Python and TypeScript planned next.
And more.
https://www.unknotcode.com - check this out ! You can play around with it here.
Would genuinely love your feedbacks.
