Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 6260

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 60k
Author
Asked: November 27, 20242024-11-27T04:54:08+00:00 2024-11-27T04:54:08+00:00

VSCode – Crear Archivos y Directorios sin usar el ratón

  • 60k

Idiomas: [🇺🇸] English – [🇪🇸] Español


¡Mira má, sin manos ratón!

Si estás intentando reducir la interacción con el ratón durante el desarrollo para aumentar la productividad, estás en el lugar correcto.

Hace un tiempo cuando trabajaba haciendo reportes y macros en Excel me convertí en una especie de maniático por los atajos de teclado porque prácticamente las fechas límite que me daba mi jefe era: “Necesito ese reporte para ayer”.

Cuando alguien me pedía ayuda para aprender Excel orientado a negocios, la primera lección que les daba era desconectar el mouse. Obviamente al principio les daba muy duro, pero era necesario si en realidad querían aprender a moverse rápido.


⚠️ Yo uso VSCode en inglés y la distribución de teclado en-US, algo que les recomiendo hacer. Los atajos de este artículo están diseñados para ese idioma, pero fácilmente los puedes acomodar al lenguaje que uses.

equimancho

Migrando a teclado en Inglés para desarrollo

Camilo Martinez for equimancho ・ Jun 25 '21

#spanish #productividad #teclado #tutorial


En VSCode la opción por defecto para crear archivos y directorios requiere un montón de interacción con el ratón, y yo sinceramente lo odio. Así que te voy a compartir una forma que encontré de hacerlo a toda velocidad, obviamente, sin usar el ratón.

Aprender

Primero que todo necesitamos aprender este útil atajo. Se usa para intercambiar el foco entre la ventana de código y el explorador de archivos.

OS Atajo
mac Command + Shift + E
win/linux Ctrl + Shift + E

Adicionando esta configuración puedes hacer que automáticamente el explorador de archivos seleccione en el árbol el archivo en el que estás trabajando.

  {     "explorer.autoReveal": true }   
Enter fullscreen mode Exit fullscreen mode

settings.json

auto-reveal

A mi me gusta esta opción porque así no tengo la necesidad de estar usando tanto las teclas de navegación dentro del explorador de archivos. Algunas veces es bueno, otras no tanto, así que lo mejor es que lo pruebes para saber si te gusta o no.

Crear

El próximo paso es adicionar mis atajos de teclado secretos a la configuración.

  [     {         "key": "ctrl+n",         "command": "explorer.newFile",         "when": "explorerViewletFocus"     },     {         "key": "ctrl+shift+n",         "command": "explorer.newFolder",         "when": "explorerViewletFocus"     } ]   
Enter fullscreen mode Exit fullscreen mode

keyboard-config

En Windows y Linux, adicionalmente necesitas esta configuración para desactivar la creación de una nueva ventana option when it's focused on file explorer.

  [     {         "key": "ctrl+shift+n",         "command": "workbench.action.newWindow",         "when": "!explorerViewletFocus"     } ]   
Enter fullscreen mode Exit fullscreen mode

Usar

Eso fue todo. Ahora desconecta tu ratón y disfruta!

demo


Alternativa

También amo la terminal. Si aún no usas ZSH, te recomiendo que le des una oportunidad y creeme nunca más vas a querer regresar.

equiman

iTerm2 + Oh My Zsh! + Powerlevel10K best terminal combination for Geeks!

Camilo Martinez ・ Sep 25 '18

#productivity #terminal #macos #zsh

Este artículo está en inglés (espero traducirlo pronto) y dirigido a usuario de macOS, pero ZSH también se puede usar en Linux y ahora en Windows a través de WSL.

En ZSH tenemos dos comando mágicos:

  • take crea un directorio y se cambia de ruta automáticamente. En vez de correr los comandos mkdir y luego cd.
  • touch crea un archivo o múltiples archivos al tiempo.

El truco para crear un componente en una sola línea es:

  take Name && touch name{.css,.js,.test.js}    
Enter fullscreen mode Exit fullscreen mode

Explicación:

  • take Name este comando crea un directorio llamando Name y cambia la ruta automáticamente.
  • Luego dentro de ese directorio el comando touch name{.css,.js,.test.js} usa el mismo prefijo name y crea 3 archivos name.css, name.js y name.test.js con los valores indicados entre las llaves.

command-line


That’s All Folks!
Happy Coding 🖖

cerveza

productivityspanishvscodewebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 1k
  • Popular
  • Answers
  • Author

    How to ensure that all the routes on my Symfony ...

    • 0 Answers
  • Author

    Insights into Forms in Flask

    • 0 Answers
  • Author

    Kick Start Your Next Project With Holo Theme

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.