Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
angry_keebler
Jul 16, 2006

In His presence the mountains quake and the hills melt away; the earth trembles and its people are destroyed. Who can stand before His fierce anger?

echinopsis posted:

dat workflo

it's really good

Adbot
ADBOT LOVES YOU

PleasureKevin
Jan 2, 2011

you should use tabs and not spaces.

spaces take 4 backspace presses to undo (or 3 if you set it to that). you can also adjust the width of a hard tab afterwards.

there are some cases, like when writing JSX (HTML embedded in javascript that gets compiled to JS elements in the React framework) where tabs don't line up like

code:
return <div>
            <span className="fart">
        </div>
and the first line is one space off if you use tabs on the subsequent lines and that bugs my OCD, but that's all

thank you

Smythe
Oct 12, 2003
Probation
Can't post for 3 hours!

angry_keebler posted:

write everything in notepad and then paste into indesign

pretty good strat. u can also shift+ctrl+v to get a context menu on paste, and choose plain or rich text., but sometimes, tat doesnt work, so u haveto use notepad, gedit, or in the most dire circumstance - the url bar of a browser.

pram
Jun 10, 2001
total non-issue. go fmt handles this for me

echinopsis
Apr 13, 2004

by Fluffdaddy
i can imagine visiting prams house - you appear live a live entirely of convenince. every tool you own and use just does its job perfectly and without pain. your life is a fuckin greased ice cube. i bet you like it like that huh

pram
Jun 10, 2001
yeah it owns

echinopsis
Apr 13, 2004

by Fluffdaddy
shame about the bowel cancer though

the bsd boys
Aug 8, 2011
Probation
Can't post for 387 days!
sometimes i get you two confused

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
i just do whatever the project i'm working on does

echinopsis
Apr 13, 2004

by Fluffdaddy

MALE SHOEGAZE posted:

i just do whatever the project i'm working on does

you sea sponge in the tide mother fucker. have some standards my good man

Smythe
Oct 12, 2003
Probation
Can't post for 3 hours!
i like my tabs like i like the cocks in my mouth: small and soft

indigi
Jul 20, 2004

how can we not talk about family
when family's all that we got?

Smythe posted:

as a word processor, i often find it difficult to predict tab behavior

indigi
Jul 20, 2004

how can we not talk about family
when family's all that we got?

echinopsis posted:

do u do dudes

my neighbour does too. he talks to me about drugs. he assumes i love drugs. anyway he tells me he takes viagra recreationally. i dont get it. he says it increases performance hence his ego regarding bonering

try it one time and you will get it

EVGA Longoria
Dec 25, 2005

Let's go exploring!

i do not give a gently caress whether it's hard or soft tabs, as long as it's auto configured

lol if youre ide or text editor doesn't auto detect what's happening and use it

EVGA Longoria
Dec 25, 2005

Let's go exploring!

new sublime text plugin - tab roulette

randomly insert a hard tab or between 1 and 5 spaces each time you press tab

MrMoo
Sep 14, 2000

8 spaces in a tab, heathens. Everyone has widescreen grandpa 80 columns.

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
Hard abs look bad in guthub

pram
Jun 10, 2001
rename the tab button the fail button (whos in charge of this?) so then its hard fails. because thats what they are

maniacdevnull
Apr 18, 2007

FOUR CUBIC FRAMES
DISPROVES SOFT G GOD
YOU ARE EDUCATED STUPID

Hard tabs match my hard abs. Please Work Out.

PleasingFungus
Oct 10, 2012
idiot asshole bitch who should fuck off

MrMoo posted:

8 spaces in a tab, heathens. Everyone has widescreen grandpa 80 columns.

this is the most hosed up thing yet......

dragon enthusiast
Jan 1, 2010

EVGA Longoria posted:

i do not give a gently caress whether it's hard or soft tabs, as long as it's auto configured

lol if youre ide or text editor doesn't auto detect what's happening and use it

trim_trailing_white_space_on_save: true

Smythe
Oct 12, 2003
Probation
Can't post for 3 hours!

MrMoo posted:

8 spaces in a tab, heathens. Everyone has widescreen grandpa 80 columns.

what the gently caress??

Rexicon1
Oct 9, 2007

A Shameful Path Led You Here
what the gently caress is a soft tab you dweebs

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

Rexicon1 posted:

what the gently caress is a soft tab you dweebs

here i have prepared an infographic to help you:



hth

Pham Nuwen
Oct 30, 2010



pram posted:

total non-issue. go fmt handles this for me

this unironically

(hard tab supremacy)

maniacdevnull
Apr 18, 2007

FOUR CUBIC FRAMES
DISPROVES SOFT G GOD
YOU ARE EDUCATED STUPID

Cold on a Cob posted:

here i have prepared an infographic to help you:



hth

Added to the op, tyvm

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord
i was using visual studio a few days ago and it was set up for hard tabs out of the box like a good ide should, but then i started to insert like an if statement or a for loop or something and it automatically indented the line i already had below it which i didn't want so i went to remove the indentation and i had to backspace four spaces

goddamnit ballmer you gently caress

MrMoo
Sep 14, 2000

Smythe posted:

what the gently caress??

it is also VIM's default, so I don't have to change anything. GitHub seems to like it too. If you are running out of screen due to the number of tabs it means your code needs some serious refactoring, clean it up already.

I guess it highly depends on your font, MSVC likes a fat glyph.

MrMoo fucked around with this message at 10:33 on Jun 20, 2015

Lime
Jul 20, 2004

elastic tabs supremacy



quote:

This animated diagram shows how the elastic tabstops mechanism aligns text. A tab character is represented as a vertical line.

Each cell ends with a tab character. A column block is a run of uninterrupted vertically adjacent cells. A column block is as wide as the widest piece of text in the cells it contains or a minimum width (plus padding). Text outside column blocks is ignored.

he wrote a plugin for visual studio too, i don't know i've never tried it

maniacdevnull
Apr 18, 2007

FOUR CUBIC FRAMES
DISPROVES SOFT G GOD
YOU ARE EDUCATED STUPID

Lime posted:

elastic tabs supremacy




he wrote a plugin for visual studio too, i don't know i've never tried it

Thanks for the effort, but Cold on a Cob kinda beat you to the punch...

Cold on a Cob posted:

here i have prepared an infographic to help you:



hth

Zlodo
Nov 25, 2006

Lime posted:

elastic tabs supremacy




he wrote a plugin for visual studio too, i don't know i've never tried it

that's an even better way than hard tabs to make sure your code will always look like poo poo when displayed outside the ide (diff viewers, code review tools etc)

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord
get diff viewer and chode review plugins for the ide then

but yeah while that gif looks awesome it is kind of asking for trouble

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord
lol at the block comments on multiple single lines though :barf:

maniacdevnull
Apr 18, 2007

FOUR CUBIC FRAMES
DISPROVES SOFT G GOD
YOU ARE EDUCATED STUPID

jony ive aces posted:

lol at the block comments on multiple single lines though :barf:

At least he's using Allman style

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord

maniacdevnull posted:

At least he's using Allman style
:vd:

Zlodo
Nov 25, 2006

jony ive aces posted:

get diff viewer and chode review plugins for the ide then

you usually look at diffs when digging through commits history to find out where some weird code is coming from and that's easiest to do it inside of for instance the perforce browser and its time-lapse view
especially if you use a bad ide like visual studio that sucks at browsing the project files as it insists in having its own file tree instead of just displaying the filesystem

for code reviews i want to just click on the link in the review email and get to a web page where i can see the diffs without messing with my running instance of visual studio which already have a hard enough time not to poo poo itself all the time

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord
get an elastic tabs plugin for ur code review then

Lime
Jul 20, 2004

i'm surprised no one has done elastic tabs in emacs

is it actually the case that you can't and emacs is in reality a POS??

comedyblissoption
Mar 15, 2006

it's because aligning your code like
code:
var foobar = 1;
var x      = 2;
var y      = 3;
is for mental children

Adbot
ADBOT LOVES YOU

karms
Jan 22, 2006

by Nyc_Tattoo
Yam Slacker

comedyblissoption posted:

it's because aligning your code like
code:
var foobar = 1;
var x      = 2;
var y      = 3;
is for mental children

nah its cool

  • Locked thread