« first day (2145 days earlier)      last day (2797 days later) » 

8:15 PM
Any one know how to select text from right to left for each line? Similar to Column selecting (Block-Selecting) with alt+drag except not selecting as block from the right hand side
there was a pluralsight course or youtube video where I saw something like this i think. No idea what it was though. I should have written it down
 
^You mean in VS
 
@KalaJ yes
 
I wish I knew the vs shortcuts XD
one sec, let me see if I Can find it
 
@KalaJ you know how to do it somewhere else?
 
Shift and arrow to the left
that works
Does that help? :)
@Michael
 
8:19 PM
@KalaJ uhh, let me see
 
It works for me, hopefully it does for you
 
@KalaJ no. lol what I'm trying to do is really sort of complex, to be honest idk if there actually is a shortcut for it.
 
wait, what you trying to do?
 
Do you want multiple cursors?
 
shift + left arrow for multiple lines? A block of text?
 
8:20 PM
@mikeTheLiar maybe
@KalaJ look at what alt + drag does
 
once you see what that does, I want it to do that, except I want it to start from the very Right of every line
@mikeTheLiar thats sorta close, thats the same as alt + drag
 
I think I understand what you want but I don't know how'd you do that
 
yeah, probbably not a thing
 
You want multiple cursors but you want them lined up jaggedly at the end of every line
There might be an extension that adds that functionality
 
8:23 PM
@mikeTheLiar yeah
I swore I saw a video on someone doing all kinds of fancy stuff one time, to accomplish this type of stuff
Can you temporarily right align all text?
 
In VS? No idea. Doubt it
So let's back up a second
What problem are you trying to solve?
 
lol
 
you could use the vim or emacs extensions
also VSCode supports multiple cursors
 
We know that, that's not the problem
 
@mikeTheLiar We have a script file that we use to Seed the db every time we clear it. If ever I want to change certain seed data... for example add a new row in between other rows for a particular table the ID's of all the other ID's following it get screwed up.

Or if I need to add a new column to the SQL script (in this particular case)
@CuddleBunny awesome I think that would do it
what is VSCode
 
8:28 PM
Pretty sure VS supports that as well
But I'm not positive
 
@Michael just open source monaco based text editor from Microsoft
 
But what you're describing.....sounds like text editor features isn't really your problem
 
@CuddleBunny so how do you actually use the multiple cursors?
 
there is probably an extension to do that in VS, but I don't think you can do it outside the box
@Michael alt + click to drop a new cursor somewhere
 
@CuddleBunny odd... I would have figured VS would have been more fully featured than VSCode
 
8:30 PM
VSCode is newer and on a rapid-release cycle
It's also free and they're trying to pull in all the FOSS devs into the MS world
 
@Michael it is, this is more of a design decision than a lacking feature.
 
@mikeTheLiar what do you think of the problem? It sounds like a not potentially common issue
yeah it is.
 
VScode extensions are also lacking because they can only create read-only UI
 
It is definitely an odd use-case. It sounds like your DB needs a good beating.
 
@mikeTheLiar its not that odd. Say you write a script to seed a database.. then you want to alter a few things.
 
8:34 PM
What exactly do you mean when you say "Seed a database"?
 
dummy data
 
Do you mean "create a database with data"?
Oh, I think I get it
So you've got a bunch of sql insert statements and you need to add a column to the end of it
 
@mikeTheLiar yeah
 
So a question - is this something that you're going to have to do frequently or is it just a one-off?
 
8:36 PM
@CuddleBunny They Identity team responded, you don't need to implement that now. Your POCO, can simply work within the IUserStore, when you do your implementation.
 
Because I have a terrible, no good, very bad workaround for a situation like this
 
@KalaJ yup :D
 
@Greg that makes sense too
 
@CuddleBunny Yeah, I was following the latest documentation but for Core it is even lighter.
 
@mikeTheLiar please share at least
 
8:42 PM
@Michael Well what you basically have it a csv
So you can copy it into excel and parse the fields out into columns
Then add the new values where you need them
Copy/paste back into a text editor, replace tabs with spaces, run it through a beautifier and you should be good to go
 
@mikeTheLiar potentially lol
 
It's not pretty but it works
That being said if this is something that you're going to have to do semi frequently you probably want to come up with a more elegant solution
 
@mikeTheLiar right, ive been trying to brain storm it
@mikeTheLiar do you know if you can insert a row into a sqlserver table and auto change all following rows to increment their ids?
without crazy sql
like i dont want to know the sql, i'm just curious if you know if thats a thing off the top of your head
 
You should be able to, you just have to turn identity insert on
So if you want to make a new ID 10
 
@mikeTheLiar ah yes, identity insert. probably wouldnt work otherside
 
8:46 PM
set identity insert myTable on
update myTable set ID = ID + 1 where ID >= 10
insert myTable(ID, whatever) values (10, other stuff)
set identity insert myTable off
That's probably not exactly right but you get the general idea
That being said....
 
@mikeTheLiar yeah that makes sense
 
You probably shouldn't be relying on specific ids to hold specific values except in very exceptional situations
 
right, seeding data is one of them.
@KalaJ reading the fine print for what isnt supported with that extension:

What isn't supported:
Multiple selections
Virtual Spaces
@KalaJ lol of course it doesnt..
 
@michael
At the bottom of this link, I think it's similar to what you want to do
multiple selections and edit
with Alt
Read the bottom and let me know
 
@KalaJ yeah, that exactly what I was talking about. look at the bottom. It says:
What isn't supported:

Multiple selections
Virtual Spaces
It doesnt support Multiple selections which is what I want :P so close
 
8:57 PM
I mean that new link
I posted above
 
@KalaJ thats the same link
 
oh crap one sec
LOl
This link
Does that help?
On the bottom
 
@KalaJ that is the alt + drag thing that I was orginally talking about that is similar to what i want to do
but yeah I already knew about it. Thanks for your help though. MultiEdit was a great find. Close enough
 
yes
it but allows you to edit as well
that's what you wanted right?
It says you can edit multiselect anywhere you want
 
@KalaJ yes, but I dont want it to be in block form
@KalaJ look at this
33 mins ago, by CuddleBunny
user image
 
9:00 PM
ohh hm
That's a good question. I would ask on SO then.
 
@KalaJ that is exactly what I wanted. It's fine though. I can live without it. Ive searched the whole interwebs
thanks though
 
Maybe someone will make an extension or refer you to a proper one
 
@Michael VSCode is free, there's nothing stopping you using it
 
^
I'm sure you can use the vim extension, you just need to know all that vim magic to go along with it
 
No one knows how to use VIM
I've been using Vim for about 2 years now, mostly because I can't figure out how to exit it.
 
9:06 PM
lol
 
yeah, that is pretty much true
whenever I have to remote into some clients linux server I need to use nano because my *nix text editor fu is weak
 
9:21 PM
@CuddleBunny You know what is odd, that the new AspNet Core when you implement your `IUserStore` it automatically does this now:

public Task<IdentityResult> CreateAsync(TEntity user, CancellationToken token)
{

}

Compared to:

public Task CreateAsync(TEntity user)
{

}
 
9:31 PM
looks more useful
 
Yeah, I agree.
Rather than have to do a Task to return your object. Now, you would simply return an IdentityResult.
 
 
1 hour later…
10:48 PM
@Greg you want a pair of skis, a bike trainer, or a trunk mounted bike rack?
 

« first day (2145 days earlier)      last day (2797 days later) »