DEV Community

Discussion on: Code navigability?

Collapse
 
emptyother profile image
emptyother

I prefer more files over longer files. Its easier to merge. The syntax colorizer and other editor tools (and partial builds) are faster. And its faster to reason about as a whole.

But cant avoid the large files, so one thing ive always wanted in editors are the ability to drag a single block of code into its own virtual editor. A kinda focus mode. No accidentally scrolling away. And a search that only find text within that block of code.

Collapse
 
stereobooster profile image
stereobooster

I prefer more files over longer files. Its easier to merge. The syntax colorizer and other editor tools (and partial builds) are faster.

This seems like tool issue. There are editors which can be really fast (something native instead of electron based). There are projects like tree sitter which can help here.

Bigger number of file require context switch when jumping between files while reading files.

A kinda focus mode

Nice idea)

Thread Thread
 
niorad profile image
Antonio Radovcic

I didn't even thing about the colorizer since I'm using a B/W color-scheme. But yes, usually it's not a problem even with VSCode. Only when opening compiled/minified files by accident.

Collapse
 
louy2 profile image
Yufan Lou

But cant avoid the large files, so one thing ive always wanted in editors are the ability to drag a single block of code into its own virtual editor. A kinda focus mode. And a search that only find text within that block of code.

Emacs narrowing welcomes you.